diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-27 02:48:50 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-27 02:48:50 +0600 |
commit | d80265ccd6ff08ef273d83aff847a457f051071f (patch) | |
tree | eff4b3767804c08df85815d0baf4e3718a8df62e /youtube_dl/extractor | |
parent | d8d24a922adb0646f9f78b2fc4a287a72fa7ff73 (diff) |
[youtube] Simplify non-DASH formats exclusion
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index fa1a2e544..46841617a 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1148,8 +1148,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # fixed values (for example the resolution). See # https://github.com/rg3/youtube-dl/issues/5774 for an # 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_keys] + formats = [f for f in formats if f['format_id'] not in dash_formats.keys()] formats.extend(dash_formats.values()) # Check for malformed aspect ratio |