Browse Source

Allow filter[i]

dirkf 2 years ago
parent
commit
080c5d48ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -1311,7 +1311,7 @@ class YoutubeDL(object):
                         # or video only (imgur)) we will fallback to best/worst
                         # {video,audio}-only format
                         elif ctx['incomplete_formats']:
-                            return fmts[format_idx]
+                            return list(fmts)[format_idx]
 
                     formats = list(ctx['formats'])
                     if not formats: