mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 14:27:25 +08:00
Use _proto_relative_url
This commit is contained in:
parent
90dacedd32
commit
588d6d5660
@ -76,13 +76,9 @@ class IwaraIE(InfoExtractor):
|
||||
format_id = a_format.get('resolution')
|
||||
height = int_or_none(self._search_regex(
|
||||
r'(\d+)p', format_id, 'height', default=None))
|
||||
if a_format['uri'].startswith('//'):
|
||||
uri = 'https:' + a_format['uri']
|
||||
else:
|
||||
uri = a_format['uri']
|
||||
|
||||
formats.append({
|
||||
'url': uri,
|
||||
'url': self._proto_relative_url(a_format['uri'], 'https:'),
|
||||
'format_id': format_id,
|
||||
'ext': mimetype2ext(a_format.get('mime')) or 'mp4',
|
||||
'height': height,
|
||||
|
Loading…
x
Reference in New Issue
Block a user