aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-19 19:58:18 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-19 19:58:18 +0600
commite33c9cba7c6c9d4a04d749c88ab447a57bcfe423 (patch)
tree6b2579a0e40e7bd79995aa7c5e7ba41af427e519 /youtube_dl
parent989e9f8eadc936ab47fcd0b7ba63aac13020a526 (diff)
[toggle] Improve _VALID_URL
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/togglesg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/togglesg.py b/youtube_dl/extractor/togglesg.py
index 47b2bfcb8..22c6c91b9 100644
--- a/youtube_dl/extractor/togglesg.py
+++ b/youtube_dl/extractor/togglesg.py
@@ -17,7 +17,7 @@ from ..utils import (
class ToggleSgIE(InfoExtractor):
IE_NAME = 'togglesg'
- _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)/(?:series|clips|movies)/(?:[^/]+/)+(?P<id>[0-9]+)'
_TESTS = [{
'url': 'http://video.toggle.sg/en/series/lion-moms-tif/trailers/lion-moms-premier/343115',
'info_dict': {
@@ -46,8 +46,9 @@ class ToggleSgIE(InfoExtractor):
'skip_download': 'DRM-protected wvm download',
}
}, {
+ # this also tests correct video id extraction
'note': 'm3u8 links are geo-restricted, but Android/mp4 is okay',
- 'url': 'http://video.toggle.sg/en/series/28th-sea-games-5-show/ep11/332861',
+ 'url': 'http://video.toggle.sg/en/series/28th-sea-games-5-show/28th-sea-games-5-show-ep11/332861',
'info_dict': {
'id': '332861',
'ext': 'mp4',