From a4301f8db09add160bd10514e66fe5b3197905bf Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 15 Aug 2024 16:03:30 +0300 Subject: [PATCH] Fixed: Parse NEWCAM as CAM Co-authored-by: bokkoman Fixes #10255 --- src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs | 1 + src/NzbDrone.Core/Parser/QualityParser.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 21aa3a7c4..0dac5cce4 100644 --- a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -45,6 +45,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("Movie Name (2022) 1080p HQCAM ENG x264 AAC - QRips", false)] [TestCase("Movie Name (2018) 720p Hindi HQ CAMrip x264 AAC 1.4GB", false)] [TestCase("Movie Name (2022) New HDCAMRip 1080p [Love Rulz]", false)] + [TestCase("Movie.Name.2024.NEWCAM.1080p.HEVC.AC3.English-RypS", false)] public void should_parse_cam(string title, bool proper) { ParseAndVerifyQuality(title, QualitySource.CAM, proper, Resolution.Unknown); diff --git a/src/NzbDrone.Core/Parser/QualityParser.cs b/src/NzbDrone.Core/Parser/QualityParser.cs index 94a877533..914ba4f63 100644 --- a/src/NzbDrone.Core/Parser/QualityParser.cs +++ b/src/NzbDrone.Core/Parser/QualityParser.cs @@ -28,7 +28,7 @@ namespace NzbDrone.Core.Parser (?SCR|SCREENER|DVDSCR|DVDSCREENER)| (?TS[-_. ]|TELESYNC|HD-TS|HDTS|PDVD|TSRip|HDTSRip)| (?TC|TELECINE|HD-TC|HDTC)| - (?CAMRIP|CAM|HD-?CAM(?:Rip)?|HQCAM)| + (?CAMRIP|(?:NEW)?CAM|HD-?CAM(?:Rip)?|HQCAM)| (?WORKPRINT|WP)| (?PDTV)| (?SDTV)|