projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
916c145
)
[youtube] Fix player ID display
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jul 2014 04:49:26 +0000
(06:49 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jul 2014 04:49:26 +0000
(06:49 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 2b346d4f8160e56bc7b8c404a010eded47154072..c48d1b8efd38a5bfd7b0c961e6cd827325694719 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-836,7
+836,8
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
player_desc = 'flash player %s' % player_version
else:
player_version = self._search_regex(
- r'html5player-(.+?)\.js', video_webpage,
+ r'html5player-([^/]+?)(?:/html5player)?\.js',
+ player_url,
'html5 player', fatal=False)
player_desc = u'html5 player %s' % player_version