From f0877a445e29ff58a4d377c8a193efb8f7c9b8e8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 8 Feb 2013 11:00:28 +0100 Subject: [PATCH] Add tests for keek --- test/tests.json | 10 ++++++++++ youtube_dl/InfoExtractors.py | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/test/tests.json b/test/tests.json index d2058c21f..5c46af2c8 100644 --- a/test/tests.json +++ b/test/tests.json @@ -276,5 +276,15 @@ } } ] + }, + { + "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 ." + } + } ] diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 2eef2a698..ac69f82fe 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -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'[\s\n]+

(?P\w+)

', 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():