From: Sergey M․ Date: Sat, 15 Mar 2014 17:47:04 +0000 (+0700) Subject: [generic] More generic support for embedded vimeo player (#1602) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=15fd51b37c233a846685322b970736a59b020fb6;p=youtube-dl [generic] More generic support for embedded vimeo player (#1602) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 6e6324779..66e189da1 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -324,9 +324,9 @@ class GenericIE(InfoExtractor): # Look for embedded (iframe) Vimeo player mobj = re.search( - r']+?src="((?:https?:)?//player\.vimeo\.com/video/.+?)"', webpage) + r']+?src=(["\'])(?P(?:https?:)?//player\.vimeo\.com/video/.+?)\1', webpage) if mobj: - player_url = unescapeHTML(mobj.group(1)) + player_url = unescapeHTML(mobj.group('url')) surl = smuggle_url(player_url, {'Referer': url}) return self.url_result(surl, 'Vimeo')