Fixed: Parse 720p Remux as 720p BluRay

Closes #8284

Co-Authored-By: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
pull/8147/head
Qstick 1 year ago
parent ff185c6111
commit 55770d3f17

@ -252,6 +252,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Movie.Name.2019.720p.MBLURAY.x264-MBLURAYFANS.mkv", false)]
[TestCase("Movie.Name2017.720p.MBluRay.x264-TREBLE.mkv", false)]
[TestCase("Movie.Name.2.Parte.2.ITA-ENG.720p.BDMux.DD5.1.x264-DarkSideMux", false)]
[TestCase("Movie.Hunter.2018.720p.Blu-ray.Remux.AVC.FLAC.2.0-SiCFoI", false)]
public void should_parse_bluray720p_quality(string title, bool proper)
{
ParseAndVerifyQuality(title, Source.BLURAY, proper, Resolution.R720p);

@ -180,7 +180,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.Remux1080p;
return result;
@ -410,9 +411,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.Remux1080p;
return result;
}

Loading…
Cancel
Save