mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 23:26:53 +01:00
parent
7bdcb4a40e
commit
3f168f0e45
@ -181,7 +181,6 @@ def _real_extract(self, url):
|
|||||||
'rtmp_live': True,
|
'rtmp_live': True,
|
||||||
'ext': 'flv',
|
'ext': 'flv',
|
||||||
'vbr': str_to_int(quality),
|
'vbr': str_to_int(quality),
|
||||||
'quality': preference,
|
|
||||||
}
|
}
|
||||||
elif transport == 'm3u8':
|
elif transport == 'm3u8':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
@ -192,9 +191,10 @@ def _real_extract(self, url):
|
|||||||
'url': url
|
'url': url
|
||||||
}
|
}
|
||||||
fmt.update({
|
fmt.update({
|
||||||
'width': width,
|
'width': int_or_none(quality, default=height, invscale=width, scale=height),
|
||||||
'height': height,
|
'height': int_or_none(quality, default=height),
|
||||||
'format_id': '%s-%s' % (transport, quality),
|
'format_id': '%s-%s' % (transport, quality),
|
||||||
|
'source_preference': preference,
|
||||||
})
|
})
|
||||||
formats.append(fmt)
|
formats.append(fmt)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user