Update index.js
Browse files
index.js
CHANGED
|
@@ -246,7 +246,7 @@ const app = express()
|
|
| 246 |
if (!ytId) return res.json({ message: 'No video id found' });
|
| 247 |
let data = await yts({ videoId: ytId });
|
| 248 |
const downloadUrls = {
|
| 249 |
-
audio: `${host}/yt?url=${url}&type=audio&quality
|
| 250 |
video: `${host}/yt?url=${url}&type=video&quality=`,
|
| 251 |
};
|
| 252 |
return res.json({
|
|
|
|
| 246 |
if (!ytId) return res.json({ message: 'No video id found' });
|
| 247 |
let data = await yts({ videoId: ytId });
|
| 248 |
const downloadUrls = {
|
| 249 |
+
audio: `${host}/yt?url=${url}&type=audio&quality=128kbps`,
|
| 250 |
video: `${host}/yt?url=${url}&type=video&quality=`,
|
| 251 |
};
|
| 252 |
return res.json({
|