From 6351011cce07bc6edc04510adf731f6e0b3dfebc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 27 May 2013 08:21:31 -0700 Subject: [PATCH] Treat WEBRip as WEBDL --- NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs | 4 +++- NzbDrone.Core/Parser/Parser.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 462384a39..1510bf844 100644 --- a/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -78,7 +78,9 @@ public class QualityParserFixture : CoreTest new object[] { "Dexter - S01E01 - Title [HDTV-720p]", Quality.HDTV720p, false }, new object[] { "Dexter - S01E01 - Title [HDTV-1080p]", Quality.HDTV1080p, false }, new object[] { "POI S02E11 1080i HDTV DD5.1 MPEG2-TrollHD", Quality.RAWHD, false }, - 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[] { "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 } }; public static object[] SelfQualityParserCases = diff --git a/NzbDrone.Core/Parser/Parser.cs b/NzbDrone.Core/Parser/Parser.cs index a9d156c69..822e80c37 100644 --- a/NzbDrone.Core/Parser/Parser.cs +++ b/NzbDrone.Core/Parser/Parser.cs @@ -279,7 +279,7 @@ private static QualityModel ParseQuality(string name) result.Quality = Quality.Bluray720p; return result; } - if (normalizedName.Contains("webdl")) + if (normalizedName.Contains("webdl") || normalizedName.Contains("webrip")) { if (normalizedName.Contains("1080p")) {