From 3c732f5a5e847f6c4b7ca76e645e9e6445ab2cbf Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 27 Aug 2013 07:08:00 -0700 Subject: [PATCH] 1080p releases without x264 or hdtv markers will be treated as HDTV instead of unknown --- NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs | 3 ++- NzbDrone.Core/Parser/Parser.cs | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 7f433c41e..e2704d186 100644 --- a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -79,7 +79,8 @@ namespace NzbDrone.Core.Test.ParserTests new object[] { "How I Met Your Mother S01E18 Nothing Good Happens After 2 A.M. 720p HDTV DD5.1 MPEG2-TrollHD", Quality.RAWHD, false }, new object[] { "Arrested.Development.S04E01.iNTERNAL.1080p.WEBRip.x264-QRUS", Quality.WEBDL1080p, false }, new object[] { "Arrested.Development.S04E01.720p.WEBRip.AAC2.0.x264-NFRiP", Quality.WEBDL720p, false }, - new object[] { "Sons.Of.Anarchy.S02E13.1080p.BluRay.x264-AVCDVD", Quality.Bluray1080p, false } + new object[] { "Sons.Of.Anarchy.S02E13.1080p.BluRay.x264-AVCDVD", Quality.Bluray1080p, false }, + new object[] { "Under the Dome S01E10 Let the Games Begin 1080p", Quality.HDTV1080p, false } }; public static object[] SelfQualityParserCases = diff --git a/NzbDrone.Core/Parser/Parser.cs b/NzbDrone.Core/Parser/Parser.cs index 2f88fe81e..15110894b 100644 --- a/NzbDrone.Core/Parser/Parser.cs +++ b/NzbDrone.Core/Parser/Parser.cs @@ -386,6 +386,12 @@ namespace NzbDrone.Core.Parser return result; } + if (normalizedName.Contains("1080p")) + { + result.Quality = Quality.HDTV1080p; + return result; + } + return result; }