Update app.js
Browse files
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
|
| 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 });
|