[togglesg] Fixes
parent
ee0f0393cf
commit
ed370ff0e6
|
@ -18,7 +18,7 @@ from ..compat import compat_urllib_request
|
||||||
|
|
||||||
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': {
|
||||||
|
@ -90,9 +90,9 @@ class ToggleSgIE(InfoExtractor):
|
||||||
webpage = self._download_webpage(url, video_id, note='Downloading video page')
|
webpage = self._download_webpage(url, video_id, note='Downloading video page')
|
||||||
|
|
||||||
api_user = self._search_regex(
|
api_user = self._search_regex(
|
||||||
r'apiUser:\s*"([^"]+)"', webpage, 'apiUser', default=self._API_USER, fatal=False)
|
r'apiUser:\s*"([^"]+)"', webpage, 'apiUser', default=self._API_USER)
|
||||||
api_pass = self._search_regex(
|
api_pass = self._search_regex(
|
||||||
r'apiPass:\s*"([^"]+)"', webpage, 'apiPass', default=self._API_PASS, fatal=False)
|
r'apiPass:\s*"([^"]+)"', webpage, 'apiPass', default=self._API_PASS)
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'initObj': {
|
'initObj': {
|
||||||
|
|
Loading…
Reference in New Issue