]> jfr.im git - yt-dlp.git/commit
[utils] `FormatSorter`: Improve `size` and `br`
authorpukkandan <redacted>
Mon, 19 Jun 2023 08:36:39 +0000 (14:06 +0530)
committerpukkandan <redacted>
Wed, 21 Jun 2023 00:40:38 +0000 (06:10 +0530)
commiteedda5252c05327748dede204a8fccafa0288118
tree8cd6333dcc96f6d9cfac8ca80afa026287d21630
parent5cc09c004bd5edbbada9b041c08a720cadc4f4df
[utils] `FormatSorter`: Improve `size` and `br`

Closes #1596

Previously, when some formats have accurate size and some approximate,
the ones with accurate size was always prioritized

For formats with known tbr and unknown vbr/abr, we were setting
(vbr=tbr, abr=0) for sorting to work. This is no longer needed.

Authored by pukkandan, u-spec-png
test/test_InfoExtractor.py
yt_dlp/utils/_utils.py