]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[xfileshare] Extend format regex (closes #13536)
authorSergey M․ <dstftw@gmail.com>
Sun, 2 Jul 2017 01:00:22 +0000 (08:00 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 2 Jul 2017 01:00:22 +0000 (08:00 +0700)
youtube_dl/extractor/xfileshare.py

index 74aac85a3caee06f503f9e7ffa65b240a2b28c18..ad747978d2fdb468d387191578e33b6bebf41f14 100644 (file)
@@ -157,7 +157,7 @@ class XFileShareIE(InfoExtractor):
         def extract_formats(default=NO_DEFAULT):
             urls = []
             for regex in (
-                    r'file\s*:\s*(["\'])(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1',
+                    r'(?:file|src)\s*:\s*(["\'])(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1',
                     r'file_link\s*=\s*(["\'])(?P<url>http(?:(?!\1).)+)\1',
                     r'addVariable\((\\?["\'])file\1\s*,\s*(\\?["\'])(?P<url>http(?:(?!\2).)+)\2\)',
                     r'<embed[^>]+src=(["\'])(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1'):