[RUTV] Fix format sorting (#3085)

Closes #3084
Authored by: Lesmiscore
This commit is contained in:
Lesmiscore (Naoya Ozaki) 2022-03-17 23:11:36 +09:00 committed by GitHub
parent 7bdcb4a40e
commit 3f168f0e45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)