From 5b31a986dd0f5ccf6b3ede91e9e64a8b1210b229 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Sun, 17 Nov 2024 08:02:37 +0100 Subject: [PATCH] add parsing of 2160p releases without source tag --- sickgear/common.py | 2 ++ tests/common_tests.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sickgear/common.py b/sickgear/common.py index 20ba2777..7e160e03 100644 --- a/sickgear/common.py +++ b/sickgear/common.py @@ -344,6 +344,8 @@ class Quality(object): return Quality.UHD4KBLURAY if name_has([webfmt]): return Quality.UHD4KWEB + # for some non scene releases that have no source in name + return Quality.UHD4KWEB return Quality.UNKNOWN diff --git a/tests/common_tests.py b/tests/common_tests.py index b255b592..cfc87874 100644 --- a/tests/common_tests.py +++ b/tests/common_tests.py @@ -126,7 +126,8 @@ quality_tests = { 'Test.Show.S01E02.2160p.WEBRip.h264-GROUP', 'Test.Show.S01E02.2160p.WEBRip.x264-GROUP', 'Test.Show.S01E02.2160p.WEBRip.x265-GROUP', - 'Test.Show.S01E02.2160p.WEBRip.vp9-GROUP'], + 'Test.Show.S01E02.2160p.WEBRip.vp9-GROUP', + 'Test.Show.S02E01.The.Name.2160p.DV.HDR.Opus.AV1'], common.Quality.UHD4KBLURAY: [ 'Test.Show.S01E02.2160p.BluRay.h264-GROUP', 'Test.Show.S01E02.2160p.BluRay.x264-GROUP', @@ -3110,6 +3111,7 @@ class QualityTests(unittest.TestCase): (('The.Show.S03E05.1080p.NF.WEB-DL.DD5.1.HDR.HEVC-Group', False), common.Quality.FULLHDWEBDL), (('The.Show.S01E10.Name.2160p.UHD.BluRay.REMUX.HDR.HEVC.DTS-HD.MA.5.1', False), common.Quality.UHD4KBLURAY), (('Show.S01E07.2160p.4K.UHD.10bit.NF.WEBRip.5.1.x265.HEVC-Group', False), common.Quality.UHD4KWEB), + (('Test.Show.S02E01.The.Name.2160p.DV.HDR.Opus.AV1', False), common.Quality.UHD4KWEB), ]) for q, l in iteritems(quality_tests): self.check_sceneQuality([((v, False), q) for v in l])