1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 00:33:05 +00:00

Fixed an issue where large 1080i MPEG HDTV rips were being considered SDTV, they now get caught as Unknown.

This commit is contained in:
Mark McDowall 2011-08-25 16:58:24 -07:00
parent ad260c54cc
commit 2ad200e743
2 changed files with 2 additions and 1 deletions

View file

@ -99,6 +99,7 @@ public void PathParse_tests(string path, int season, int episode)
[TestCase("S07E23 .avi ", QualityTypes.SDTV)]
[TestCase("WEEDS.S03E01-06.DUAL.XviD.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.DVD)]
[TestCase("WEEDS.S03E01-06.DUAL.Bluray.AC3.-HELLYWOOD.avi", QualityTypes.Bluray720p)]
[TestCase("The Voice S01E11 The Finals 1080i HDTV DD5.1 MPEG2-TrollHD", QualityTypes.Unknown)]
public void quality_parse(string postTitle, object quality)
{
var result = Parser.ParseQuality(postTitle);

View file

@ -311,7 +311,7 @@ internal static Quality ParseQuality(string name)
}
}
if (normalizedName.Contains("sdtv") || (result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv")))
if ((normalizedName.Contains("sdtv") || (result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) && !normalizedName.Contains("mpeg"))
{
result.QualityType = QualityTypes.SDTV;
return result;