diff --git a/yt_dlp/extractor/rutv.py b/yt_dlp/extractor/rutv.py index 66ac32deb..0ea8253fa 100644 --- a/yt_dlp/extractor/rutv.py +++ b/yt_dlp/extractor/rutv.py @@ -181,7 +181,6 @@ def _real_extract(self, url): 'rtmp_live': True, 'ext': 'flv', 'vbr': str_to_int(quality), - 'quality': preference, } elif transport == 'm3u8': formats.extend(self._extract_m3u8_formats( @@ -192,9 +191,10 @@ def _real_extract(self, url): 'url': url } fmt.update({ - 'width': width, - 'height': height, + 'width': int_or_none(quality, default=height, invscale=width, scale=height), + 'height': int_or_none(quality, default=height), 'format_id': '%s-%s' % (transport, quality), + 'source_preference': preference, }) formats.append(fmt)