From cdb68398328ff37d5dac5bc965872f05534a9121 Mon Sep 17 00:00:00 2001 From: Frank Aurich <1100101@gmail.com> Date: Mon, 19 Oct 2020 22:55:08 +0200 Subject: [PATCH] Fix display of resolution, at least for the HLS video formats --- youtube_dl/extractor/mdr.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/mdr.py b/youtube_dl/extractor/mdr.py index 4f284e89a..1d7c77ec5 100644 --- a/youtube_dl/extractor/mdr.py +++ b/youtube_dl/extractor/mdr.py @@ -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)