aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-06 00:45:57 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-06 00:45:57 +0600
commite40bd5f06ba397f6a3f9f21ab1df01c120d90eb7 (patch)
treea192b2453ca948c488d3ccd09053ae4c9392cc30 /youtube_dl/extractor/youtube.py
parent06b491eb7b9459f92484f83973c17d46dba59f1f (diff)
[youtube] Simplify url_encoded_fmt_stream_map check
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 198fe84ef..79ce39aa4 100644
--- 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)