projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d24a9
)
[youtube] Simplify non-DASH formats exclusion
author
Sergey M․
<dstftw@gmail.com>
Fri, 26 Jun 2015 20:48:50 +0000
(
02:48
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 26 Jun 2015 20:48:50 +0000
(
02:48
+0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index fa1a2e54495ccad9358bbac4418bb458fe8fe5b2..46841617a44c85d9e7f4b2541f5c6d36829e388b 100644
(file)
--- 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