[wimp] Improve video URL regex
authorSergey M․ <dstftw@gmail.com>
Mon, 7 Dec 2015 16:18:00 +0000 (22:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 7 Dec 2015 16:18:00 +0000 (22:18 +0600)
youtube_dl/extractor/wimp.py

index 022a3d1b578420a54be5ba2647d1ec8aed464018..041ff6c555123d44c97bc63810d2aa7903ec069e 100644 (file)
@@ -42,7 +42,7 @@ class WimpIE(InfoExtractor):
             }
 
         video_url = self._search_regex(
-            r'<video[^>]+>\s*<source src=(["\'])(?P<url>.+?)\1',
+            r'<video[^>]+>\s*<source[^>]+src=(["\'])(?P<url>.+?)\1',
             webpage, 'video URL', group='url')
 
         return {