mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 07:02:56 +08:00
[Iwara] Update extractor
This commit is contained in:
parent
fd62b36680
commit
90dacedd32
@ -76,8 +76,13 @@ class IwaraIE(InfoExtractor):
|
|||||||
format_id = a_format.get('resolution')
|
format_id = a_format.get('resolution')
|
||||||
height = int_or_none(self._search_regex(
|
height = int_or_none(self._search_regex(
|
||||||
r'(\d+)p', format_id, 'height', default=None))
|
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({
|
formats.append({
|
||||||
'url': a_format['uri'],
|
'url': uri,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
'ext': mimetype2ext(a_format.get('mime')) or 'mp4',
|
'ext': mimetype2ext(a_format.get('mime')) or 'mp4',
|
||||||
'height': height,
|
'height': height,
|
||||||
|
Loading…
Reference in New Issue
Block a user