From 2ad200e743670d2a30f43327eb51f6b1b3f5b8e1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 25 Aug 2011 16:58:24 -0700 Subject: [PATCH] Fixed an issue where large 1080i MPEG HDTV rips were being considered SDTV, they now get caught as Unknown. --- NzbDrone.Core.Test/ParserTest.cs | 1 + NzbDrone.Core/Parser.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index 6b82f4904..665cea1de 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -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); diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index ecc66e8f5..797b79123 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -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;