mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[youtube] Simplify non-DASH formats exclusion
This commit is contained in:
parent
d8d24a922a
commit
d80265ccd6
|
@ -1148,8 +1148,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
# fixed values (for example the resolution). See
|
# fixed values (for example the resolution). See
|
||||||
# https://github.com/rg3/youtube-dl/issues/5774 for an
|
# https://github.com/rg3/youtube-dl/issues/5774 for an
|
||||||
# example.
|
# example.
|
||||||
dash_keys = set(df['format_id'] for df in dash_formats.values())
|
formats = [f for f in formats if f['format_id'] not in dash_formats.keys()]
|
||||||
formats = [f for f in formats if f['format_id'] not in dash_keys]
|
|
||||||
formats.extend(dash_formats.values())
|
formats.extend(dash_formats.values())
|
||||||
|
|
||||||
# Check for malformed aspect ratio
|
# Check for malformed aspect ratio
|
||||||
|
|
Loading…
Reference in a new issue