Update index.js
Browse files
index.js
CHANGED
|
@@ -775,10 +775,10 @@ return res.json({ message: e.message });
|
|
| 775 |
|
| 776 |
let data = await ytAPI(url) ? await ytAPI(url) : {}
|
| 777 |
let dataInfo = await ytdl.getVideoID(url)
|
| 778 |
-
dataInfo = await yts({videoId: dataInfo})
|
| 779 |
|
| 780 |
let response = {
|
| 781 |
-
|
| 782 |
...data,
|
| 783 |
};
|
| 784 |
|
|
|
|
| 775 |
|
| 776 |
let data = await ytAPI(url) ? await ytAPI(url) : {}
|
| 777 |
let dataInfo = await ytdl.getVideoID(url)
|
| 778 |
+
dataInfo = await yts({videoId: dataInfo}) ? await yts({videoId: dataInfo}) : {}
|
| 779 |
|
| 780 |
let response = {
|
| 781 |
+
...dataInfo,
|
| 782 |
...data,
|
| 783 |
};
|
| 784 |
|