Fixed: Parse 720p Remux as 720p BluRay

fix bad anime remux no source logic

Fixes #5517
This commit is contained in:
Bakerboy448 2023-03-30 13:10:29 -05:00 committed by Mark McDowall
parent 9ae647d9d2
commit a776b68574
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}