From: Sergey M․ Date: Thu, 23 Oct 2014 16:03:07 +0000 (+0700) Subject: [generic/wistia] Improve regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=281d3f1d6877a022d51d8d654595c4958dd83d7c;p=youtube-dl [generic/wistia] Improve regex --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index bf957fa3f..e13816c66 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -663,7 +663,7 @@ class GenericIE(InfoExtractor): # Look for embedded Wistia player match = re.search( - r'(?:]+?src)=(["\'])(?P(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage) + r'<(?:meta[^>]+?content|iframe[^>]+?src)=(["\'])(?P(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage) if match: embed_url = self._proto_relative_url( unescapeHTML(match.group('url')))