1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

Fix display of resolution, at least for the HLS video formats

This commit is contained in:
Frank Aurich 2020-10-19 22:55:08 +02:00
parent d4ad744cd1
commit cdb6839832

View File

@ -140,11 +140,13 @@ class MDRIE(InfoExtractor):
f = {
'url': video_url,
'filesize': filesize,
'abr': abr,
'preference': 1,
}
if filesize:
f.update({'filesize': filesize})
if vbr or abr:
f.update({
'format_id': '%s-%d' % (media_type, vbr or abr)})
@ -170,10 +172,7 @@ class MDRIE(InfoExtractor):
abr = f.get('tbr') or abr
if 'tbr' in f:
del f['tbr']
f.update({
'abr': abr,
'vcodec': 'none',
})
f.update({'abr': abr})
formats.extend(url_formats)