diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-12-14 00:43:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-12-14 00:43:34 +0100 |
commit | 60620368d75346212e9eb3ec6e3e7f2c630a5b0e (patch) | |
tree | cdc945b62dea8a2820e99867972af0cca0a53916 /youtube_dl/extractor/youtube.py | |
parent | 4927de4f865eea988b92f37df40f3522c024f6e6 (diff) |
[youtube] Fix player ID detection
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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<id>[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player)?\.(?P<ext>[a-z]+)$', + r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player)?\.(?P<ext>[a-z]+)$', player_url) if not id_m: raise ExtractorError('Cannot identify player %r' % player_url) |