From 2c7a2df3ea9dc5910b4b356a9ee6891597533d3d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 25 Apr 2012 08:15:48 -0700 Subject: [PATCH] New: Repacks will be treated the same as propers. --- NzbDrone.Core.Test/ParserTest.cs | 3 +++ NzbDrone.Core/Parser.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index 027303656..6f98d30f5 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -159,6 +159,9 @@ namespace NzbDrone.Core.Test [TestCase("Gossip Girl S05E11 PROPER HDTV XviD 2HD", QualityTypes.SDTV, true)] [TestCase("The Jonathan Ross Show S02E08 HDTV x264 FTP", QualityTypes.SDTV, false)] [TestCase("White.Van.Man.2011.S02E01.WS.PDTV.x264-TLA", QualityTypes.SDTV, false)] + [TestCase("White.Van.Man.2011.S02E01.WS.PDTV.x264-REPACK-TLA", QualityTypes.SDTV, true)] + [TestCase("WEEDS.S03E01-06.DUAL.XviD.Bluray.AC3-REPACK.-HELLYWOOD.avi", QualityTypes.DVD, true)] + [TestCase("Pawn Stars S04E87 REPACK 720p HDTV x264 aAF", QualityTypes.HDTV, true)] public void quality_parse(string postTitle, object quality, bool proper) { var result = Parser.ParseQuality(postTitle); diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index ad05a0b53..0f2fda3c6 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -251,7 +251,7 @@ namespace NzbDrone.Core name = name.Trim(); var normalizedName = NormalizeTitle(name); var result = new Quality { QualityType = QualityTypes.Unknown }; - result.Proper = normalizedName.Contains("proper"); + result.Proper = (normalizedName.Contains("proper") || normalizedName.Contains("repack")); if (normalizedName.Contains("dvd") || normalizedName.Contains("bdrip") || normalizedName.Contains("brrip")) {