From: Philipp Hagemeister Date: Fri, 25 Jul 2014 04:49:26 +0000 (+0200) Subject: [youtube] Fix player ID display X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b081cebefaa54812bf55d4856da0dbfba3998d26;p=youtube-dl [youtube] Fix player ID display --- 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