aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-04-05 22:29:06 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-04-05 22:29:06 +0800
commit3a9fadd6dfc127ed0707b218b11ac10c654af1e2 (patch)
treef2257ba23536c5c4aeff41cfb5df1f662ced2aa4 /youtube_dl
parent0de9312a7e7c15262ce4a59249d3c4294989757c (diff)
[youtube] Enhance url_encoded_fmt_stream_map checking (fix #5361)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 5488101e1..f7f701cc5 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -855,7 +855,8 @@ 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:
+ if ('url_encoded_fmt_stream_map' not in args or
+ args['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)