diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-07-02 08:00:22 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-07-02 08:00:22 +0700 |
commit | 02d61a65e27c9f186ea24bce8e9f0c65f4ec508a (patch) | |
tree | 75df22f10b7d841b834e4f02de62a1f2eaa170a4 /youtube_dl | |
parent | 9b35297be1b7e5fa7372bac664ab91a7fa364760 (diff) |
[xfileshare] Extend format regex (closes #13536)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/xfileshare.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xfileshare.py b/youtube_dl/extractor/xfileshare.py index 74aac85a3..ad747978d 100644 --- a/youtube_dl/extractor/xfileshare.py +++ b/youtube_dl/extractor/xfileshare.py @@ -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'): |