Update lib/yt.js
Browse files
lib/yt.js
CHANGED
|
@@ -16,7 +16,7 @@ async function yt(url, format) {
|
|
| 16 |
}
|
| 17 |
|
| 18 |
const initial = await fetch(`https://d.ymcdn.org/api/v1/init?p=y&23=1llum1n471&_=${Math.random()}`, {headers});
|
| 19 |
-
|
| 20 |
const init = await initial.json();
|
| 21 |
console.log(init)
|
| 22 |
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
const initial = await fetch(`https://d.ymcdn.org/api/v1/init?p=y&23=1llum1n471&_=${Math.random()}`, {headers});
|
| 19 |
+
format = format || 'mp3'; //mp3
|
| 20 |
const init = await initial.json();
|
| 21 |
console.log(init)
|
| 22 |
|