youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 44d466559e9d1e762456a2dce4fc6cb0775f105e
parent 05751eb0479b988a89d650befea239a32bddbfd9
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue,  1 Oct 2013 14:44:09 +0200

Properly handle stream meap not being present

Diffstat:
Myoutube_dl/extractor/youtube.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -1390,7 +1390,7 @@ 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': + if 'url_encoded_fmt_stream_map' not in args: 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: