mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 13:53:01 +08:00
[youtube] Recognize new locale-based player URLs (fixes #12885)
This commit is contained in:
parent
3fd0f70f6a
commit
e31fed95b4
@ -1,3 +1,9 @@
|
||||
version <unreleased>
|
||||
|
||||
Extractor
|
||||
* [youtube] Recognize new locale-based player URLs (#12885)
|
||||
|
||||
|
||||
version 2017.04.26
|
||||
|
||||
Core
|
||||
|
@ -963,7 +963,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
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(?:-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)
|
||||
if not id_m:
|
||||
raise ExtractorError('Cannot identify player %r' % player_url)
|
||||
|
Loading…
Reference in New Issue
Block a user