mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 09:19:45 +01:00
[toggle] Improve _VALID_URL
This commit is contained in:
parent
989e9f8ead
commit
e33c9cba7c
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
class ToggleSgIE(InfoExtractor):
|
class ToggleSgIE(InfoExtractor):
|
||||||
IE_NAME = 'togglesg'
|
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 = [{
|
_TESTS = [{
|
||||||
'url': 'http://video.toggle.sg/en/series/lion-moms-tif/trailers/lion-moms-premier/343115',
|
'url': 'http://video.toggle.sg/en/series/lion-moms-tif/trailers/lion-moms-premier/343115',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -46,8 +46,9 @@ class ToggleSgIE(InfoExtractor):
|
|||||||
'skip_download': 'DRM-protected wvm download',
|
'skip_download': 'DRM-protected wvm download',
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
# this also tests correct video id extraction
|
||||||
'note': 'm3u8 links are geo-restricted, but Android/mp4 is okay',
|
'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': {
|
'info_dict': {
|
||||||
'id': '332861',
|
'id': '332861',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
Loading…
Reference in New Issue
Block a user