|
@ -963,7 +963,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): |
|
|
|
|
|
|
|
|
def _extract_signature_function(self, video_id, player_url, example_sig): |
|
|
def _extract_signature_function(self, video_id, player_url, example_sig): |
|
|
id_m = re.match( |
|
|
id_m = re.match( |
|
|
r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player(?:-new)?|/base)?\.(?P<ext>[a-z]+)$', |
|
|
|
|
|
|
|
|
r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player(?:-new)?|(?:/[a-z]{2}_[A-Z]{2})?/base)?\.(?P<ext>[a-z]+)$', |
|
|
player_url) |
|
|
player_url) |
|
|
if not id_m: |
|
|
if not id_m: |
|
|
raise ExtractorError('Cannot identify player %r' % player_url) |
|
|
raise ExtractorError('Cannot identify player %r' % player_url) |
|
|