1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 05:47:27 +00:00

Allow filter[i]

This commit is contained in:
dirkf 2023-01-09 00:44:26 +00:00 committed by GitHub
parent ba1399d54d
commit 080c5d48ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: