This commit is contained in:
Flummi
2021-12-26 17:26:30 +01:00
parent ef54c7ccce
commit 52bfed6ed9
5 changed files with 131 additions and 8 deletions

View File

@ -81,11 +81,11 @@ export default async bot => {
let source;
if(meta.ext === "mp4") {
source = (await exec(`yt-dlp -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' "${link}" --max-filesize ${maxfilesize}k --merge-output-format mp4 -o ./tmp/${filename}`)).stdout.trim();
//change yt-dlp to youtube-dl if problem ^
//change 720 to any other available resolution, higher = better quality but bigger filesize
}
else {
source = (await exec(`yt-dlp -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' "${link}" --max-filesize ${maxfilesize}k -o ./tmp/${filename}`)).stdout.trim();
//change yt-dlp to youtube-dl if problem ^
//change 720 to any other available resolution, higher = better quality but bigger filesize
}
if(source.match(/larger than/))