mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-05 01:48:01 +09:00
Remove unused imports
This commit is contained in:
parent
977887469c
commit
2101830c0d
@ -22,7 +22,6 @@ if os.name == 'nt':
|
|||||||
from .utils import (
|
from .utils import (
|
||||||
compat_cookiejar,
|
compat_cookiejar,
|
||||||
compat_http_client,
|
compat_http_client,
|
||||||
compat_print,
|
|
||||||
compat_str,
|
compat_str,
|
||||||
compat_urllib_error,
|
compat_urllib_error,
|
||||||
compat_urllib_request,
|
compat_urllib_request,
|
||||||
|
@ -5,7 +5,6 @@ from ..utils import (
|
|||||||
compat_parse_qs,
|
compat_parse_qs,
|
||||||
compat_urllib_parse,
|
compat_urllib_parse,
|
||||||
compat_urllib_request,
|
compat_urllib_request,
|
||||||
compat_str,
|
|
||||||
determine_ext,
|
determine_ext,
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
)
|
)
|
||||||
|
@ -2,8 +2,6 @@ import re
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
compat_str,
|
|
||||||
|
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
orderedSet,
|
orderedSet,
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
|
@ -20,10 +20,9 @@ class WimpIE(InfoExtractor):
|
|||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
video_id = mobj.group(1)
|
video_id = mobj.group(1)
|
||||||
webpage = self._download_webpage(url, video_id)
|
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 = self._search_regex("googleCode = '(.*?)'", webpage, 'file url')
|
||||||
googleString = base64.b64decode(googleString).decode('ascii')
|
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 {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user