projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b491e
)
[youtube] Simplify url_encoded_fmt_stream_map check
author
Sergey M․
<dstftw@gmail.com>
Sun, 5 Apr 2015 18:45:57 +0000
(
00:45
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 5 Apr 2015 18:45:57 +0000
(
00:45
+0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 198fe84ef92c3fd39ef6ee0dc6252b895906856c..79ce39aa40bdbf59f7afef403f0afc301333138b 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-871,8
+871,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
args = ytplayer_config['args']
# Convert to the same format returned by compat_parse_qs
video_info = dict((k, [v]) for k, v in args.items())
- if ('url_encoded_fmt_stream_map' not in args or
- args['url_encoded_fmt_stream_map'] == ''):
+ if not args.get('url_encoded_fmt_stream_map'):
raise ValueError('No stream_map present') # caught below
except ValueError:
# We fallback to the get_video_info pages (used by the embed page)