aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/rutv.py
diff options
context:
space:
mode:
authorLesmiscore (Naoya Ozaki) <nao20010128@gmail.com>2022-03-17 23:11:36 +0900
committerGitHub <noreply@github.com>2022-03-17 07:11:36 -0700
commit3f168f0e45ca64415533a257cdfcb308a19bd0a6 (patch)
treea54f7698da9ed38c9e16b56d01c444e9f077badf /yt_dlp/extractor/rutv.py
parent7bdcb4a40eb7168ea9f921c38025641d41e38a60 (diff)
downloadhypervideo-pre-3f168f0e45ca64415533a257cdfcb308a19bd0a6.tar.lz
hypervideo-pre-3f168f0e45ca64415533a257cdfcb308a19bd0a6.tar.xz
hypervideo-pre-3f168f0e45ca64415533a257cdfcb308a19bd0a6.zip
[RUTV] Fix format sorting (#3085)
Closes #3084 Authored by: Lesmiscore
Diffstat (limited to 'yt_dlp/extractor/rutv.py')
-rw-r--r--yt_dlp/extractor/rutv.py6
1 files changed, 3 insertions, 3 deletions
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 @@ class RUTVIE(InfoExtractor):
'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 @@ class RUTVIE(InfoExtractor):
'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)