aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/toggle.py
diff options
context:
space:
mode:
authorAakash Gajjar <skyqutip@gmail.com>2020-08-26 20:22:32 +0530
committerGitHub <noreply@github.com>2020-08-26 20:22:32 +0530
commit19a107f21c7544b5e49a58040d09d9465f6858b1 (patch)
tree8325ffd206d9da1ce53f24b9ab4690abe175144d /youtube_dl/extractor/toggle.py
parent7f7edf837c1af059f64a4968b942a83f86cf6206 (diff)
downloadhypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.tar.lz
hypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.tar.xz
hypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.zip
Revert "pull changes from remote master (#190)" (#193)
This reverts commit b827ee921fe510a8730a9fab070148ed2b8279b5.
Diffstat (limited to 'youtube_dl/extractor/toggle.py')
-rw-r--r--youtube_dl/extractor/toggle.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/youtube_dl/extractor/toggle.py b/youtube_dl/extractor/toggle.py
index ca2e36efe..5e5efda0f 100644
--- a/youtube_dl/extractor/toggle.py
+++ b/youtube_dl/extractor/toggle.py
@@ -17,9 +17,9 @@ from ..utils import (
class ToggleIE(InfoExtractor):
IE_NAME = 'toggle'
- _VALID_URL = r'https?://(?:(?:www\.)?mewatch|video\.toggle)\.sg/(?:en|zh)/(?:[^/]+/){2,}(?P<id>[0-9]+)'
+ _VALID_URL = r'https?://video\.toggle\.sg/(?:en|zh)/(?:[^/]+/){2,}(?P<id>[0-9]+)'
_TESTS = [{
- 'url': 'http://www.mewatch.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': {
'id': '343115',
'ext': 'mp4',
@@ -33,7 +33,7 @@ class ToggleIE(InfoExtractor):
}
}, {
'note': 'DRM-protected video',
- 'url': 'http://www.mewatch.sg/en/movies/dug-s-special-mission/341413',
+ 'url': 'http://video.toggle.sg/en/movies/dug-s-special-mission/341413',
'info_dict': {
'id': '341413',
'ext': 'wvm',
@@ -48,7 +48,7 @@ class ToggleIE(InfoExtractor):
}, {
# this also tests correct video id extraction
'note': 'm3u8 links are geo-restricted, but Android/mp4 is okay',
- 'url': 'http://www.mewatch.sg/en/series/28th-sea-games-5-show/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',
@@ -65,22 +65,19 @@ class ToggleIE(InfoExtractor):
'url': 'http://video.toggle.sg/en/clips/seraph-sun-aloysius-will-suddenly-sing-some-old-songs-in-high-pitch-on-set/343331',
'only_matching': True,
}, {
- 'url': 'http://www.mewatch.sg/en/clips/seraph-sun-aloysius-will-suddenly-sing-some-old-songs-in-high-pitch-on-set/343331',
+ 'url': 'http://video.toggle.sg/zh/series/zero-calling-s2-hd/ep13/336367',
'only_matching': True,
}, {
- 'url': 'http://www.mewatch.sg/zh/series/zero-calling-s2-hd/ep13/336367',
+ 'url': 'http://video.toggle.sg/en/series/vetri-s2/webisodes/jeeva-is-an-orphan-vetri-s2-webisode-7/342302',
'only_matching': True,
}, {
- 'url': 'http://www.mewatch.sg/en/series/vetri-s2/webisodes/jeeva-is-an-orphan-vetri-s2-webisode-7/342302',
+ 'url': 'http://video.toggle.sg/en/movies/seven-days/321936',
'only_matching': True,
}, {
- 'url': 'http://www.mewatch.sg/en/movies/seven-days/321936',
+ 'url': 'https://video.toggle.sg/en/tv-show/news/may-2017-cna-singapore-tonight/fri-19-may-2017/512456',
'only_matching': True,
}, {
- 'url': 'https://www.mewatch.sg/en/tv-show/news/may-2017-cna-singapore-tonight/fri-19-may-2017/512456',
- 'only_matching': True,
- }, {
- 'url': 'http://www.mewatch.sg/en/channels/eleven-plus/401585',
+ 'url': 'http://video.toggle.sg/en/channels/eleven-plus/401585',
'only_matching': True,
}]