]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[metacafe] move tests
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Jun 2013 18:18:35 +0000 (20:18 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Jun 2013 18:18:35 +0000 (20:18 +0200)
test/tests.json
youtube_dl/extractor/metacafe.py

index 7b9cf7ee0d3838ed1b24ea2c095946421ee2f768..b7b28515a86b2bb80459aaf34a6017137b0de344 100644 (file)
@@ -9,19 +9,6 @@
       "title": "Tutoriel de Youtubeur\"DL DES VIDEO DE YOUTUBE\""
     }
   },
-  {
-    "name": "Metacafe",
-    "add_ie": ["Youtube"],
-    "url":  "http://metacafe.com/watch/yt-_aUehQsCQtM/the_electric_company_short_i_pbs_kids_go/",
-    "file":  "_aUehQsCQtM.flv",
-    "info_dict": {
-      "upload_date": "20090102",
-      "title": "The Electric Company | \"Short I\" | PBS KIDS GO!",
-      "description": "md5:2439a8ef6d5a70e380c22f5ad323e5a8",
-      "uploader": "PBS",
-      "uploader_id": "PBS"
-    }
-  },
   {
     "name": "BlipTV",
     "md5":  "b2d849efcf7ee18917e4b4d9ff37cafe",
index 66d6554feb0de61953b4c9ebc68e095c953ba08b..83572214e8cf1d36a1610966bc345b4ff6a3ca5b 100644 (file)
@@ -20,6 +20,20 @@ class MetacafeIE(InfoExtractor):
     _DISCLAIMER = 'http://www.metacafe.com/family_filter/'
     _FILTER_POST = 'http://www.metacafe.com/f/index.php?inputType=filter&controllerGroup=user'
     IE_NAME = u'metacafe'
+    _TEST = {
+        u"name": u"Metacafe",
+        u"add_ie": ["Youtube"],
+        u"url":  u"http://metacafe.com/watch/yt-_aUehQsCQtM/the_electric_company_short_i_pbs_kids_go/",
+        u"file":  u"_aUehQsCQtM.flv",
+        u"info_dict": {
+            u"upload_date": u"20090102",
+            u"title": u"The Electric Company | \"Short I\" | PBS KIDS GO!",
+            u"description": u"md5:2439a8ef6d5a70e380c22f5ad323e5a8",
+            u"uploader": u"PBS",
+            u"uploader_id": u"PBS"
+        }
+    }
+
 
     def report_disclaimer(self):
         """Report disclaimer retrieval."""