From: Philipp Hagemeister Date: Sun, 20 Jul 2014 18:20:42 +0000 (+0200) Subject: [youtube] fix display of swf player id X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b8c74d606aff4a325cdcc951df99495690f40054;p=youtube-dl [youtube] fix display of swf player id --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 623056bd9..6e77504bf 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -834,7 +834,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): else: if player_url.endswith('swf'): player_version = self._search_regex( - r'-(.+)\.swf$', player_url, + r'-(.+?)(?:/watch_as3)?\.swf$', player_url, u'flash player', fatal=False) player_desc = 'flash player %s' % player_version else: