Skip to content

Commit c339970

Browse files
committed
Fix playlist downloading 1080p video
1 parent 223623c commit c339970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/playlist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const playlistDownloader = {
298298
if (videoType === "mp4") {
299299
formatArgs = [
300300
"-f",
301-
`"bestvideo[height<=1080]+bestaudio[ext=m4a]/best[height<=1080]/best"`,
301+
`"bestvideo[height<=${quality}]+bestaudio[ext=m4a]/best[height<=${quality}]/best"`,
302302
"--merge-output-format",
303303
"mp4",
304304
"--recode-video",
@@ -307,7 +307,7 @@ const playlistDownloader = {
307307
} else if (videoType === "webm") {
308308
formatArgs = [
309309
"-f",
310-
`"bestvideo[height<=1080]+bestaudio[ext=webm]/best[height<=1080]/best"`,
310+
`"bestvideo[height<=${quality}]+bestaudio[ext=webm]/best[height<=${quality}]/best"`,
311311
"--merge-output-format",
312312
"webm",
313313
"--recode-video",

0 commit comments

Comments
 (0)