Add tests for keek
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 8 Feb 2013 10:00:28 +0000 (11:00 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 8 Feb 2013 10:00:28 +0000 (11:00 +0100)
test/tests.json
youtube_dl/InfoExtractors.py

index d2058c21fb0f765888c916c5b1d4c8a63e587785..5c46af2c8896af2a0bc58ca8fd0f827f7ee2e0e5 100644 (file)
         }
       }
     ]
+  },
+  {
+    "name": "Keek",
+    "url": "http://www.keek.com/ytdl/keeks/NODfbab",
+    "file": "NODfbab.mp4",
+    "md5": "9b0636f8c0f7614afa4ea5e4c6e57e83",
+    "info_dict": {
+      "title": "test chars: \"'/\\รค<>This is a test video for youtube-dl.For more information, contact phihag@phihag.de ."
+    }
+
   }
 ]
index 2eef2a6986a56cb9496ce2cb6b0b4d717bd73551..ac69f82fe95345dbb67e7441ed3f66de4627e613 100755 (executable)
@@ -3955,9 +3955,9 @@ class KeekIE(InfoExtractor):
         thumbnail = u'http://cdn.keek.com/keek/thumbnail/%s/w100/h75' % video_id
         webpage = self._download_webpage(url, video_id)
         m = re.search(r'<meta property="og:title" content="(?P<title>.+)"', webpage)
-        title = m.group('title')
+        title = unescapeHTML(m.group('title'))
         m = re.search(r'<div class="bio-names-and-report">[\s\n]+<h4>(?P<uploader>\w+)</h4>', webpage)
-        uploader = m.group('uploader')
+        uploader = unescapeHTML(m.group('uploader'))
         info = {
                 'id':video_id,
                 'url':video_url,
@@ -3965,7 +3965,7 @@ class KeekIE(InfoExtractor):
                 'title': title,
                 'thumbnail': thumbnail,
                 'uploader': uploader
-                  }
+        }
         return [info]
 
 def gen_extractors():