1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[youku] Add a v.swf test case

This commit is contained in:
Yen Chi Hsuan 2015-06-15 23:36:28 +08:00
parent 9383e66f94
commit ee69799262

View file

@ -21,7 +21,7 @@ class YoukuIE(InfoExtractor):
(?P<id>[A-Za-z0-9]+)(?:\.html|/v\.swf|) (?P<id>[A-Za-z0-9]+)(?:\.html|/v\.swf|)
''' '''
_TEST = { _TESTS = [{
'url': 'http://v.youku.com/v_show/id_XMTc1ODE5Njcy.html', 'url': 'http://v.youku.com/v_show/id_XMTc1ODE5Njcy.html',
'md5': '5f3af4192eabacc4501508d54a8cabd7', 'md5': '5f3af4192eabacc4501508d54a8cabd7',
'info_dict': { 'info_dict': {
@ -29,7 +29,10 @@ class YoukuIE(InfoExtractor):
'title': '★Smile﹗♡ Git Fresh -Booty Music舞蹈.', 'title': '★Smile﹗♡ Git Fresh -Booty Music舞蹈.',
'ext': 'flv' 'ext': 'flv'
} }
} }, {
'url': 'http://player.youku.com/player.php/sid/XNDgyMDQ2NTQw/v.swf',
'only_matching': True,
}]
def construct_video_urls(self, data1, data2): def construct_video_urls(self, data1, data2):
# get sid, token # get sid, token