aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authordirkf <[email protected]>2023-01-09 00:44:26 +0000
committerGitHub <[email protected]>2023-01-09 00:44:26 +0000
commit080c5d48ed23c8482fac63e95604a96fd48c1912 (patch)
treee9c02c1dd1590e124be2ff7b3e02de741a216461 /youtube_dl
parentba1399d54d72ffb55e109c1e62090b5c8dff85e0 (diff)
downloadyoutube-dl-080c5d48ed23c8482fac63e95604a96fd48c1912.tar.gz
youtube-dl-080c5d48ed23c8482fac63e95604a96fd48c1912.zip
Allow filter[i]
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
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: