1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Fixed: MPEG-2 remuxes being detected as "Raw-HD" quality

Fixes #2986
This commit is contained in:
Leonardo Galli
2018-10-15 09:53:33 +02:00
parent 0c542eeb13
commit 4f4e6c494d
2 changed files with 13 additions and 8 deletions
+7 -7
View File
@@ -104,13 +104,6 @@ namespace NzbDrone.Core.Parser
}
}
if (RawHDRegex.IsMatch(normalizedName))
{
result.Modifier = Modifier.RAWHD;
result.Source = Source.TV;
return result;
}
var sourceMatch = SourceRegex.Matches(normalizedName).OfType<Match>().LastOrDefault();
var resolution = ParseResolution(normalizedName);
var codecRegex = CodecRegex.Match(normalizedName);
@@ -129,6 +122,13 @@ namespace NzbDrone.Core.Parser
result.Source = Source.BLURAY;
return result; //We found remux!
}
if (RawHDRegex.IsMatch(normalizedName) && result.Modifier != Modifier.BRDISK)
{
result.Modifier = Modifier.RAWHD;
result.Source = Source.TV;
return result;
}
if (sourceMatch != null && sourceMatch.Success)
{