projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e31fed9
)
[youtube] Recognize another HTML5 player URL (#12885)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 28 Apr 2017 08:25:04 +0000
(16:25 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 28 Apr 2017 08:25:04 +0000
(16:25 +0800)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index b59f746af22fdfc67914bd70bca3f87665475c25..480f403dadf91a355a6e91fac8c46945a04d1dc1 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1629,7
+1629,8
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
player_desc = 'flash player %s' % player_version
else:
player_version = self._search_regex(
- [r'html5player-([^/]+?)(?:/html5player(?:-new)?)?\.js', r'(?:www|player)-([^/]+)/base\.js'],
+ [r'html5player-([^/]+?)(?:/html5player(?:-new)?)?\.js',
+ r'(?:www|player)-([^/]+)(?:/[a-z]{2}_[A-Z]{2})?/base\.js'],
player_url,
'html5 player', fatal=False)
player_desc = 'html5 player %s' % player_version