aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kusi.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-03-04 14:32:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-03-04 14:32:01 +0800
commitb6f94d81ea8d3243edf5a4378760281d9d9c2cba (patch)
treea6c46532a2cb0e53faf37774a07530b5097211a5 /youtube_dl/extractor/kusi.py
parent8477a6928314cff7957fde55e56a05b2acf76871 (diff)
[kusi] Add a test for the alternative form of URL
Diffstat (limited to 'youtube_dl/extractor/kusi.py')
-rw-r--r--youtube_dl/extractor/kusi.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/youtube_dl/extractor/kusi.py b/youtube_dl/extractor/kusi.py
index 20407411b..5e87c5f79 100644
--- a/youtube_dl/extractor/kusi.py
+++ b/youtube_dl/extractor/kusi.py
@@ -10,7 +10,7 @@ from ..utils import int_or_none
class KUSIIE(InfoExtractor):
_VALID_URL = r'http://(?:www\.)?kusi\.com/(?P<path>story/.+|video\?clipId=(?P<clipId>\d+))'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.kusi.com/story/31183873/turko-files-case-closed-put-on-hold',
'md5': 'f926e7684294cf8cb7bdf8858e1b3988',
'info_dict': {
@@ -18,8 +18,19 @@ class KUSIIE(InfoExtractor):
'ext': 'mp4',
'title': 'Turko Files: Case Closed! & Put On Hold!',
'duration': 231000,
- }
- }
+ },
+ }, {
+ 'url': 'http://kusi.com/video?clipId=12203019',
+ 'info_dict': {
+ 'id': '12203019',
+ 'ext': 'mp4',
+ 'title': 'Turko Files: Case Closed! & Put On Hold!',
+ 'duration': 231000,
+ },
+ 'params': {
+ 'skip_download': True, # Same as previous one
+ },
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)