projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b35297
)
[xfileshare] Extend format regex (closes #13536)
author
Sergey M․
<dstftw@gmail.com>
Sun, 2 Jul 2017 01:00:22 +0000
(08:00 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 2 Jul 2017 01:00:22 +0000
(08:00 +0700)
youtube_dl/extractor/xfileshare.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xfileshare.py
b/youtube_dl/extractor/xfileshare.py
index 74aac85a3caee06f503f9e7ffa65b240a2b28c18..ad747978d2fdb468d387191578e33b6bebf41f14 100644
(file)
--- 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 (
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'):
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'):