add to file_quality for video height over 1100 to return 4k web too

This commit is contained in:
Prinz23 2024-11-18 06:19:57 +01:00 committed by JackDandy
parent 5b31a986dd
commit 2494473f68

View file

@ -405,6 +405,8 @@ class Quality(object):
if None is not height and height >= tolerance(352, 5): if None is not height and height >= tolerance(352, 5):
if height <= tolerance(720, 2): if height <= tolerance(720, 2):
return Quality.SDTV return Quality.SDTV
if 1100 < height:
return Quality.UHD4KWEB
return (Quality.HDTV, Quality.FULLHDTV)[height >= tolerance(1080, 1)] return (Quality.HDTV, Quality.FULLHDTV)[height >= tolerance(1080, 1)]
return Quality.UNKNOWN return Quality.UNKNOWN