From c0cfbc4de4e3dce3877006a9586453cba6d52a84 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 15 Jul 2014 07:34:36 -0700 Subject: [PATCH] Fixed: Blu-Ray in release/file name will be handle as Blu-Ray properly --- src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs | 3 +++ src/NzbDrone.Core/Parser/QualityParser.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs index 797960fc6..f04987c5e 100644 --- a/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/QualityParserFixture.cs @@ -161,6 +161,8 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("[coldhell] Pupa v3 [BD720p][03192D4C]", false)] [TestCase("[RandomRemux] Nobunagun - 01 [720p BD][043EA407].mkv", false)] [TestCase("[Kaylith] Isshuukan Friends Specials - 01 [BD 720p AAC][B7EEE164].mkv", false)] + [TestCase("WEEDS.S03E01-06.DUAL.Blu-ray.AC3.-HELLYWOOD.avi", false)] + [TestCase("WEEDS.S03E01-06.DUAL.720p.Blu-ray.AC3.-HELLYWOOD.avi", false)] public void should_parse_bluray720p_quality(string title, bool proper) { ParseAndVerifyQuality(title, Quality.Bluray720p, proper); @@ -173,6 +175,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("[coldhell] Pupa v2 [BD1080p][5A45EABE].mkv", false)] [TestCase("[Kaylith] Isshuukan Friends Specials - 01 [BD 1080p FLAC][429FD8C7].mkv", false)] [TestCase("[Zurako] Log Horizon - 01 - The Apocalypse (BD 1080p AAC) [7AE12174].mkv", false)] + [TestCase("WEEDS.S03E01-06.DUAL.1080p.Blu-ray.AC3.-HELLYWOOD.avi", false)] public void should_parse_bluray1080p_quality(string title, bool proper) { ParseAndVerifyQuality(title, Quality.Bluray1080p, proper); diff --git a/src/NzbDrone.Core/Parser/QualityParser.cs b/src/NzbDrone.Core/Parser/QualityParser.cs index 4a7a336c8..a2e6f114e 100644 --- a/src/NzbDrone.Core/Parser/QualityParser.cs +++ b/src/NzbDrone.Core/Parser/QualityParser.cs @@ -13,7 +13,7 @@ namespace NzbDrone.Core.Parser private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); private static readonly Regex SourceRegex = new Regex(@"\b(?: - (?BluRay)| + (?BluRay|Blu-Ray)| (?WEB[-_. ]DL|WEBDL|WebRip)| (?HDTV)| (?BDRiP)|