mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 08:47:41 +00:00
Allow filter[i]
This commit is contained in:
parent
ba1399d54d
commit
080c5d48ed
1 changed files with 1 additions and 1 deletions
|
@ -1311,7 +1311,7 @@ class YoutubeDL(object):
|
||||||
# or video only (imgur)) we will fallback to best/worst
|
# or video only (imgur)) we will fallback to best/worst
|
||||||
# {video,audio}-only format
|
# {video,audio}-only format
|
||||||
elif ctx['incomplete_formats']:
|
elif ctx['incomplete_formats']:
|
||||||
return fmts[format_idx]
|
return list(fmts)[format_idx]
|
||||||
|
|
||||||
formats = list(ctx['formats'])
|
formats = list(ctx['formats'])
|
||||||
if not formats:
|
if not formats:
|
||||||
|
|
Loading…
Reference in a new issue