Fixed: Parse 720p Remux as 720p BluRay
fix bad anime remux no source logic Fixes #5517
This commit is contained in:
parent
9ae647d9d2
commit
a776b68574
|
@ -308,6 +308,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||||
[TestCase("The.Series.S01E07.RERIP.720p.BluRay.x264-DEMAND", true)]
|
[TestCase("The.Series.S01E07.RERIP.720p.BluRay.x264-DEMAND", true)]
|
||||||
[TestCase("Sans.Series.De.Traces.FRENCH.720p.BluRay.x264-FHD", false)]
|
[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.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)
|
public void should_parse_bluray720p_quality(string title, bool proper)
|
||||||
{
|
{
|
||||||
ParseAndVerifyQuality(title, Quality.Bluray720p, proper);
|
ParseAndVerifyQuality(title, Quality.Bluray720p, proper);
|
||||||
|
|
|
@ -150,7 +150,8 @@ namespace NzbDrone.Core.Parser
|
||||||
}
|
}
|
||||||
|
|
||||||
// Treat a remux without a source as 1080p, not 720p.
|
// 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;
|
result.Quality = Quality.Bluray1080pRemux;
|
||||||
return result;
|
return result;
|
||||||
|
@ -337,9 +338,10 @@ namespace NzbDrone.Core.Parser
|
||||||
}
|
}
|
||||||
|
|
||||||
// Treat a remux without a source as 1080p, not 720p.
|
// 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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue