diff options
author | dirkf <[email protected]> | 2023-01-09 00:44:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-09 00:44:26 +0000 |
commit | 080c5d48ed23c8482fac63e95604a96fd48c1912 (patch) | |
tree | e9c02c1dd1590e124be2ff7b3e02de741a216461 /youtube_dl | |
parent | ba1399d54d72ffb55e109c1e62090b5c8dff85e0 (diff) | |
download | youtube-dl-080c5d48ed23c8482fac63e95604a96fd48c1912.tar.gz youtube-dl-080c5d48ed23c8482fac63e95604a96fd48c1912.zip |
Allow filter[i]
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 7851d1ebd..55d50ead6 100755 --- a/youtube_dl/YoutubeDL.py +++ b/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: |