mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-27 06:02:33 +01:00
Fixed: 576p Detection in MediaInfoAugment
This commit is contained in:
parent
45011198e2
commit
cfb44c7db7
@ -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)]
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user