diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-07-25 06:49:26 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-07-25 06:49:26 +0200 |
commit | b081cebefaa54812bf55d4856da0dbfba3998d26 (patch) | |
tree | 0d8ec254effd5ce29582bb24a268037827e57ab5 /youtube_dl/extractor | |
parent | 916c1452178c68bc7133b84f1538d19d5a7db17e (diff) |
[youtube] Fix player ID display
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 2b346d4f8..c48d1b8ef 100644 --- 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 |