Update index.js
Browse files
index.js
CHANGED
|
@@ -195,12 +195,12 @@ async function fby2mate(url) {
|
|
| 195 |
}
|
| 196 |
}
|
| 197 |
|
| 198 |
-
const
|
| 199 |
|
| 200 |
async function ytAPI(url) {
|
| 201 |
try {
|
| 202 |
// Execute youtube-dl to get video information
|
| 203 |
-
const output = await
|
| 204 |
dumpSingleJson: true,
|
| 205 |
noCheckCertificates: true,
|
| 206 |
noWarnings: true,
|
|
|
|
| 195 |
}
|
| 196 |
}
|
| 197 |
|
| 198 |
+
const youtubedel = require('youtube-dl-exec');
|
| 199 |
|
| 200 |
async function ytAPI(url) {
|
| 201 |
try {
|
| 202 |
// Execute youtube-dl to get video information
|
| 203 |
+
const output = await youtubedel(url, {
|
| 204 |
dumpSingleJson: true,
|
| 205 |
noCheckCertificates: true,
|
| 206 |
noWarnings: true,
|