[generic] Expand jwplayer support
authorSergey M․ <dstftw@gmail.com>
Wed, 5 Aug 2015 15:19:52 +0000 (21:19 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 5 Aug 2015 15:19:52 +0000 (21:19 +0600)
youtube_dl/extractor/generic.py

index 8cef61c3c9a235a6d3f3230b8517222334dc0fbc..6df89f81403a34a5c12b3b37110e8258e3f4499d 100644 (file)
@@ -1655,7 +1655,7 @@ class GenericIE(InfoExtractor):
         if not found:
             # Broaden the findall a little bit: JWPlayer JS loader
             found = filter_video(re.findall(
-                r'[^A-Za-z0-9]?file["\']?:\s*["\'](http(?![^\'"]+\.[0-9]+[\'"])[^\'"]+)["\']', webpage))
+                r'[^A-Za-z0-9]?(?:file|video_url)["\']?:\s*["\'](http(?![^\'"]+\.[0-9]+[\'"])[^\'"]+)["\']', webpage))
         if not found:
             # Flow player
             found = filter_video(re.findall(r'''(?xs)