mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-20 12:04:03 +00:00
[kusi] Add a test for the alternative form of URL
This commit is contained in:
parent
8477a69283
commit
b6f94d81ea
@ -10,7 +10,7 @@ from ..utils import int_or_none
|
|||||||
|
|
||||||
class KUSIIE(InfoExtractor):
|
class KUSIIE(InfoExtractor):
|
||||||
_VALID_URL = r'http://(?:www\.)?kusi\.com/(?P<path>story/.+|video\?clipId=(?P<clipId>\d+))'
|
_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',
|
'url': 'http://www.kusi.com/story/31183873/turko-files-case-closed-put-on-hold',
|
||||||
'md5': 'f926e7684294cf8cb7bdf8858e1b3988',
|
'md5': 'f926e7684294cf8cb7bdf8858e1b3988',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -18,8 +18,19 @@ class KUSIIE(InfoExtractor):
|
|||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Turko Files: Case Closed! & Put On Hold!',
|
'title': 'Turko Files: Case Closed! & Put On Hold!',
|
||||||
'duration': 231000,
|
'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):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
Loading…
Reference in New Issue
Block a user