diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-15 23:36:28 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-15 23:36:28 +0800 |
commit | ee69799262e8344742b9d8b492fe792b4d586f6a (patch) | |
tree | 977f02a08e4cb68bf9bc788a9f5f1b383487ed45 /youtube_dl/extractor/youku.py | |
parent | 9383e66f9475eca0e64c09972c1392d92d17570c (diff) |
[youku] Add a v.swf test case
Diffstat (limited to 'youtube_dl/extractor/youku.py')
-rw-r--r-- | youtube_dl/extractor/youku.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py index e41b48369..d8162a0c5 100644 --- a/youtube_dl/extractor/youku.py +++ b/youtube_dl/extractor/youku.py @@ -21,7 +21,7 @@ class YoukuIE(InfoExtractor): (?P<id>[A-Za-z0-9]+)(?:\.html|/v\.swf|) ''' - _TEST = { + _TESTS = [{ 'url': 'http://v.youku.com/v_show/id_XMTc1ODE5Njcy.html', 'md5': '5f3af4192eabacc4501508d54a8cabd7', 'info_dict': { @@ -29,7 +29,10 @@ class YoukuIE(InfoExtractor): 'title': '★Smile﹗♡ Git Fresh -Booty Music舞蹈.', 'ext': 'flv' } - } + }, { + 'url': 'http://player.youku.com/player.php/sid/XNDgyMDQ2NTQw/v.swf', + 'only_matching': True, + }] def construct_video_urls(self, data1, data2): # get sid, token |