]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[generic/wistia] Improve regex
authorSergey M․ <dstftw@gmail.com>
Thu, 23 Oct 2014 16:03:07 +0000 (23:03 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 23 Oct 2014 16:03:07 +0000 (23:03 +0700)
youtube_dl/extractor/generic.py

index bf957fa3fdc24ae84c17aa5ae313d9ca3be14395..e13816c66b966d0209e686107e2275a3ceaeb91f 100644 (file)
@@ -663,7 +663,7 @@ class GenericIE(InfoExtractor):
 
         # Look for embedded Wistia player
         match = re.search(
-            r'(?:<meta content|<iframe[^>]+?src)=(["\'])(?P<url>(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage)
+            r'<(?:meta[^>]+?content|iframe[^>]+?src)=(["\'])(?P<url>(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage)
         if match:
             embed_url = self._proto_relative_url(
                 unescapeHTML(match.group('url')))