projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722076a
)
Handle videos without url_encoded_fmt_stream_map (Fixes #1535)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Oct 2013 09:39:11 +0000
(11:39 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Oct 2013 09:39:11 +0000
(11:39 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 53f13b51664dbcdf3b89dacab4ba3e0c1c53ba46..f3b9e3ab17a068ab72b71cf88b3dc0edda5d4dab 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1390,6
+1390,8
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
args = info['args']
# Easy way to know if the 's' value is in url_encoded_fmt_stream_map
# this signatures are encrypted
+ if 'url_encoded_fmt_stream_map':
+ raise ValueError(u'No stream_map present') # caught below
m_s = re.search(r'[&,]s=', args['url_encoded_fmt_stream_map'])
if m_s is not None:
self.to_screen(u'%s: Encrypted signatures detected.' % video_id)