1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 16:29:41 +02:00

Fixed: 576p Detection in MediaInfoAugment

This commit is contained in:
Qstick 2020-10-29 21:13:20 -04:00
parent 45011198e2
commit cfb44c7db7
2 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,8 @@ public void should_return_null_if_media_info_width_is_zero()
[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)]

View File

@ -45,6 +45,12 @@ public AugmentQualityResult AugmentQuality(LocalMovie localMovie, DownloadClient
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);