Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
e31fed95
Unverified
Commit
e31fed95
authored
Apr 28, 2017
by
Yen Chi Hsuan
Browse files
[youtube] Recognize new locale-based player URLs (fixes #12885)
parent
3fd0f70f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ChangeLog
ChangeLog
+6
-0
youtube_dl/extractor/youtube.py
youtube_dl/extractor/youtube.py
+1
-1
No files found.
ChangeLog
View file @
e31fed95
version <unreleased>
Extractor
* [youtube] Recognize new locale-based player URLs (#12885)
version 2017.04.26
Core
...
...
youtube_dl/extractor/youtube.py
View file @
e31fed95
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment