1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44: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 = { f = {
'url': video_url, 'url': video_url,
'filesize': filesize,
'abr': abr, 'abr': abr,
'preference': 1, 'preference': 1,
} }
if filesize:
f.update({'filesize': filesize})
if vbr or abr: if vbr or abr:
f.update({ f.update({
'format_id': '%s-%d' % (media_type, vbr or abr)}) 'format_id': '%s-%d' % (media_type, vbr or abr)})
@ -170,10 +172,7 @@ class MDRIE(InfoExtractor):
abr = f.get('tbr') or abr abr = f.get('tbr') or abr
if 'tbr' in f: if 'tbr' in f:
del f['tbr'] del f['tbr']
f.update({ f.update({'abr': abr})
'abr': abr,
'vcodec': 'none',
})
formats.extend(url_formats) formats.extend(url_formats)