Fixed: 576p Detection in MediaInfoAugment

pull/5285/head
Qstick 4 years ago
parent 45011198e2
commit cfb44c7db7

@ -47,6 +47,8 @@ namespace NzbDrone.Core.Test.MediaFiles.MovieImport.Aggregation.Aggregators.Augm
[TestCase(1490, 1, Resolution.R720p)]
[TestCase(1280, 1, Resolution.R720p)] // HD
[TestCase(1200, 1, Resolution.R720p)]
[TestCase(1024, 1, Resolution.R576p)]
[TestCase(768, 576, Resolution.R576p)]
[TestCase(800, 1, Resolution.R480p)]
[TestCase(720, 1, Resolution.R480p)] // SDTV
[TestCase(600, 1, Resolution.R480p)]

@ -45,6 +45,12 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Aggregation.Aggregators.Augmenter
return AugmentQualityResult.ResolutionOnly((int)Resolution.R720p, Confidence.MediaInfo);
}
if (width >= 1000 || height >= 560)
{
_logger.Trace("Resolution {0}x{1} considered 576p", width, height);
return AugmentQualityResult.ResolutionOnly((int)Resolution.R576p, Confidence.MediaInfo);
}
if (width > 0 && height > 0)
{
_logger.Trace("Resolution {0}x{1} considered 480p", width, height);

Loading…
Cancel
Save