Refactor code to use url_result
This commit is contained in:
parent
8437f5089f
commit
d226c560a6
9 changed files with 13 additions and 43 deletions
|
@ -2197,10 +2197,7 @@ class GenericIE(InfoExtractor):
|
|||
|
||||
def _real_extract(self, url):
|
||||
if url.startswith('//'):
|
||||
return {
|
||||
'_type': 'url',
|
||||
'url': self.http_scheme() + url,
|
||||
}
|
||||
return self.url_result(self.http_scheme() + url)
|
||||
|
||||
parsed_url = compat_urlparse.urlparse(url)
|
||||
if not parsed_url.scheme:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue