aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorping <lipng.ong@gmail.com>2015-09-18 00:51:41 +0800
committerSergey M․ <dstftw@gmail.com>2015-12-19 18:48:59 +0600
commited370ff0e6f52aaf3647b32cdbba9d25ce8533e5 (patch)
tree9d38edf07c23f86dc7b5789ac897c723cba79d6b
parentee0f0393cfd3daeff729f5f5594e4c5b1bec5436 (diff)
[togglesg] Fixes
-rw-r--r--youtube_dl/extractor/togglesg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/togglesg.py b/youtube_dl/extractor/togglesg.py
index 56ef4b464..9f958d453 100644
--- a/youtube_dl/extractor/togglesg.py
+++ b/youtube_dl/extractor/togglesg.py
@@ -18,7 +18,7 @@ from ..compat import compat_urllib_request
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': {
@@ -90,9 +90,9 @@ class ToggleSgIE(InfoExtractor):
webpage = self._download_webpage(url, video_id, note='Downloading video page')
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(
- r'apiPass:\s*"([^"]+)"', webpage, 'apiPass', default=self._API_PASS, fatal=False)
+ r'apiPass:\s*"([^"]+)"', webpage, 'apiPass', default=self._API_PASS)
params = {
'initObj': {