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 @@ namespace NzbDrone.Core.Test
[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 @@ namespace NzbDrone.Core
}
}
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;