wudysoft commited on
Commit
8c5e164
·
verified ·
1 Parent(s): 3d5e406

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -3
app.js CHANGED
@@ -98,9 +98,7 @@ app.get('/ytdl', async (req, res) => {
98
  return res.status(400).send('Parameter "id" is required.');
99
  }
100
 
101
- const rawUrl = ` -j`;
102
- const encodedUrl = encodeURI(rawUrl);
103
- const apiUrl = `https://api.allorigins.win/raw?url=https://ytdlp.online/stream?command=https://www.youtube.com/watch?v=${id}${encodedUrl}`;
104
 
105
  try {
106
  const browser = await chromium.launch({ headless: true });
 
98
  return res.status(400).send('Parameter "id" is required.');
99
  }
100
 
101
+ const apiUrl = `https://api.allorigins.win/raw?url=https://ytdlp.online/stream?command=-j https://www.youtube.com/watch?v=${id}`;
 
 
102
 
103
  try {
104
  const browser = await chromium.launch({ headless: true });