From 2101830c0d27e6d9ad2f564ff004565e71da1ec5 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 9 Dec 2013 04:53:23 +0100 Subject: [PATCH] Remove unused imports --- youtube_dl/YoutubeDL.py | 1 - youtube_dl/extractor/metacafe.py | 1 - youtube_dl/extractor/stanfordoc.py | 2 -- youtube_dl/extractor/wimp.py | 3 +-- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 3fbbf3ba0..17b3827f2 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -22,7 +22,6 @@ from .utils import ( compat_cookiejar, compat_http_client, - compat_print, compat_str, compat_urllib_error, compat_urllib_request, diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py index bd044fb60..99d3c83a5 100644 --- a/youtube_dl/extractor/metacafe.py +++ b/youtube_dl/extractor/metacafe.py @@ -5,7 +5,6 @@ compat_parse_qs, compat_urllib_parse, compat_urllib_request, - compat_str, determine_ext, ExtractorError, ) diff --git a/youtube_dl/extractor/stanfordoc.py b/youtube_dl/extractor/stanfordoc.py index d0d0989f0..44c52c718 100644 --- a/youtube_dl/extractor/stanfordoc.py +++ b/youtube_dl/extractor/stanfordoc.py @@ -2,8 +2,6 @@ from .common import InfoExtractor from ..utils import ( - compat_str, - ExtractorError, orderedSet, unescapeHTML, diff --git a/youtube_dl/extractor/wimp.py b/youtube_dl/extractor/wimp.py index 3635691e7..82a626e0e 100644 --- a/youtube_dl/extractor/wimp.py +++ b/youtube_dl/extractor/wimp.py @@ -20,10 +20,9 @@ def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) video_id = mobj.group(1) webpage = self._download_webpage(url, video_id) - title = self._html_search_meta('description', webpage, u'video title') googleString = self._search_regex("googleCode = '(.*?)'", webpage, 'file url') googleString = base64.b64decode(googleString).decode('ascii') - final_url = self._search_regex('","(.*?)"', googleString,'final video url') + final_url = self._search_regex('","(.*?)"', googleString, u'final video url') return { 'id': video_id,