Update index.js
Browse files
index.js
CHANGED
|
@@ -278,7 +278,7 @@ function formatSize(bytes, si = false, dp = 2) {
|
|
| 278 |
return `${bytes.toFixed(dp)} ${units[u]}`;
|
| 279 |
}
|
| 280 |
|
| 281 |
-
async function ytmp4(url, quality = '
|
| 282 |
try {
|
| 283 |
const info = await youtubedl.getInfo(url);
|
| 284 |
const videoStream = youtubedl(url, {
|
|
@@ -309,7 +309,7 @@ async function ytmp4(url, quality = 'highestvideo') {
|
|
| 309 |
}
|
| 310 |
}
|
| 311 |
|
| 312 |
-
async function ytmp3(url, bitrate = '
|
| 313 |
try {
|
| 314 |
const info = await youtubedl.getInfo(url);
|
| 315 |
const audioStream = youtubedl(url, {
|
|
|
|
| 278 |
return `${bytes.toFixed(dp)} ${units[u]}`;
|
| 279 |
}
|
| 280 |
|
| 281 |
+
async function ytmp4(url, quality = 'highest') {
|
| 282 |
try {
|
| 283 |
const info = await youtubedl.getInfo(url);
|
| 284 |
const videoStream = youtubedl(url, {
|
|
|
|
| 309 |
}
|
| 310 |
}
|
| 311 |
|
| 312 |
+
async function ytmp3(url, bitrate = 'lowest') {
|
| 313 |
try {
|
| 314 |
const info = await youtubedl.getInfo(url);
|
| 315 |
const audioStream = youtubedl(url, {
|