hopefully fixed x2

This commit is contained in:
localhost 2024-03-29 15:48:15 +01:00
parent 50a5581f81
commit c602160597
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ async function downloadVideo(url, ws, id) {
const video = await metadata.getVideoMetadata(id) const video = await metadata.getVideoMetadata(id)
if (video.lengthSeconds > 1500) { if (video.lengthSeconds > 1500) {
const formats = await getFormats(url, ws) const formats = await getFormats(url, ws)
if (!formats.fail && formats.includes('18 mp4')) { if (!formats.fail && formats.includes('360p')) {
args.push('-f 18') args.push('-f 18')
} }
} }