From a776b68574bbf9315f3d18e55e0f310e95a37e79 Mon Sep 17 00:00:00 2001 From: Bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Thu, 30 Mar 2023 13:10:29 -0500 Subject: [PATCH] Fixed: Parse 720p Remux as 720p BluRay fix bad anime remux no source logic Fixes #5517 --- .../ParserTests/QualityParserFixture.cs | 1 + src/NzbDrone.Core/Parser/QualityParser.cs | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 00f9a0a38..b9c434f18 100644 --- a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -308,6 +308,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("The.Series.S01E07.RERIP.720p.BluRay.x264-DEMAND", true)] [TestCase("Sans.Series.De.Traces.FRENCH.720p.BluRay.x264-FHD", false)] [TestCase("Series.Black.1x01.Selezione.Naturale.ITA.720p.BDMux.x264-NovaRip", false)] + [TestCase("Series.Hunter.S02.720p.Blu-ray.Remux.AVC.FLAC.2.0-SiCFoI", false)] public void should_parse_bluray720p_quality(string title, bool proper) { ParseAndVerifyQuality(title, Quality.Bluray720p, proper); diff --git a/src/NzbDrone.Core/Parser/QualityParser.cs b/src/NzbDrone.Core/Parser/QualityParser.cs index 3afa9a722..22837f1b5 100644 --- a/src/NzbDrone.Core/Parser/QualityParser.cs +++ b/src/NzbDrone.Core/Parser/QualityParser.cs @@ -150,7 +150,8 @@ namespace NzbDrone.Core.Parser } // Treat a remux without a source as 1080p, not 720p. - if (remuxMatch) + // 720p remux should fallback as 720p BluRay + if (remuxMatch && resolution != Resolution.R720p) { result.Quality = Quality.Bluray1080pRemux; return result; @@ -337,9 +338,10 @@ namespace NzbDrone.Core.Parser } // Treat a remux without a source as 1080p, not 720p. - if (remuxMatch) + // 720p remux should fallback as 720p BluRay + if (remuxMatch && resolution != Resolution.R720p) { - result.Quality = Quality.Bluray1080p; + result.Quality = Quality.Bluray1080pRemux; return result; }