diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-04-07 20:55:01 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-04-07 20:55:01 +0700 |
commit | e2750e1437497925c5a058947b850ddadd7ee7d3 (patch) | |
tree | 5a2b9fe6a1a5e94eff1997ab59749c77df22c98f | |
parent | e944737c597a2f5e8e6ade93a25fc812119d4eb9 (diff) |
[liveleak] Extend _VALID_URL (closes #16117)
-rw-r--r-- | youtube_dl/extractor/liveleak.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index 246aac576..26671753c 100644 --- 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): - _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', @@ -79,6 +79,9 @@ class LiveLeakIE(InfoExtractor): '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 |