projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e944737
)
[liveleak] Extend _VALID_URL (closes #16117)
author
Sergey M․
<dstftw@gmail.com>
Sat, 7 Apr 2018 13:55:01 +0000
(20:55 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 7 Apr 2018 13:55:01 +0000
(20:55 +0700)
youtube_dl/extractor/liveleak.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/liveleak.py
b/youtube_dl/extractor/liveleak.py
index 246aac576a2c6b275ed38ef614eb7a569b9e2ffb..26671753c429401fc9085b69e5a0aae10d495e6f 100644
(file)
--- a/
youtube_dl/extractor/liveleak.py
+++ b/
youtube_dl/extractor/liveleak.py
@@
-7,7
+7,7
@@
from ..utils import int_or_none
class LiveLeakIE(InfoExtractor):
class LiveLeakIE(InfoExtractor):
- _VALID_URL = r'https?://(?:\w+\.)?liveleak\.com/view\?
(?:.*?)i=(?P<id>[\w_]+)(?:.*
)'
+ _VALID_URL = r'https?://(?:\w+\.)?liveleak\.com/view\?
.*?\b[it]=(?P<id>[\w_]+
)'
_TESTS = [{
'url': 'http://www.liveleak.com/view?i=757_1364311680',
'md5': '0813c2430bea7a46bf13acf3406992f4',
_TESTS = [{
'url': 'http://www.liveleak.com/view?i=757_1364311680',
'md5': '0813c2430bea7a46bf13acf3406992f4',
@@
-79,6
+79,9
@@
class LiveLeakIE(InfoExtractor):
'title': 'Fuel Depot in China Explosion caught on video',
},
'playlist_count': 3,
'title': 'Fuel Depot in China Explosion caught on video',
},
'playlist_count': 3,
+ }, {
+ 'url': 'https://www.liveleak.com/view?t=HvHi_1523016227',
+ 'only_matching': True,
}]
@staticmethod
}]
@staticmethod