From: Philipp Hagemeister Date: Sat, 13 Dec 2014 23:43:34 +0000 (+0100) Subject: [youtube] Fix player ID detection X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=60620368d75346212e9eb3ec6e3e7f2c630a5b0e;p=youtube-dl [youtube] Fix player ID detection --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 823d6aaf3..3319d6bff 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -478,7 +478,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): def _extract_signature_function(self, video_id, player_url, example_sig): id_m = re.match( - r'.*-(?P[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player)?\.(?P[a-z]+)$', + r'.*?-(?P[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player)?\.(?P[a-z]+)$', player_url) if not id_m: raise ExtractorError('Cannot identify player %r' % player_url)