diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-05-20 23:06:30 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-05-20 23:06:30 +0700 |
commit | 35a2d221a35caf8aad533b5f8ef6d7b12acd4e41 (patch) | |
tree | ef0957c45413dd1b4c7bca595a6ed297a85c5e63 /youtube_dl/extractor/toggle.py | |
parent | daa4e9ff90e9c017238dae48e9862ebe02bc3ff2 (diff) |
[toggle] Relax _VALID_URL (closes #13172)
Diffstat (limited to 'youtube_dl/extractor/toggle.py')
-rw-r--r-- | youtube_dl/extractor/toggle.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/toggle.py b/youtube_dl/extractor/toggle.py index c54b876d3..348d6ecdf 100644 --- a/youtube_dl/extractor/toggle.py +++ b/youtube_dl/extractor/toggle.py @@ -17,7 +17,7 @@ from ..utils import ( class ToggleIE(InfoExtractor): IE_NAME = 'toggle' - _VALID_URL = r'https?://video\.toggle\.sg/(?:en|zh)/(?:series|clips|movies)/(?:[^/]+/)+(?P<id>[0-9]+)' + _VALID_URL = r'https?://video\.toggle\.sg/(?:en|zh)/(?:[^/]+/){2,}(?P<id>[0-9]+)' _TESTS = [{ 'url': 'http://video.toggle.sg/en/series/lion-moms-tif/trailers/lion-moms-premier/343115', 'info_dict': { @@ -73,6 +73,12 @@ class ToggleIE(InfoExtractor): }, { 'url': 'http://video.toggle.sg/en/movies/seven-days/321936', 'only_matching': True, + }, { + 'url': 'https://video.toggle.sg/en/tv-show/news/may-2017-cna-singapore-tonight/fri-19-may-2017/512456', + 'only_matching': True, + }, { + 'url': 'http://video.toggle.sg/en/channels/eleven-plus/401585', + 'only_matching': True, }] _FORMAT_PREFERENCES = { |