]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youku] Add a v.swf test case
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Jun 2015 15:36:28 +0000 (23:36 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Jun 2015 15:36:28 +0000 (23:36 +0800)
youtube_dl/extractor/youku.py

index e41b483699091a45b6bc5fe780f6f8542d5746ab..d8162a0c5ab96199ca5437780f91cb3ea616619d 100644 (file)
@@ -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