From 7871c118e7f5fcd26e71963b595fbd1702b9a878 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Thu, 5 Jan 2017 23:12:22 +0100 Subject: [PATCH] Fix for PassThePopcorn release titles --- src/NzbDrone.Core/Parser/Parser.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 5e79ea3ad..a48204a28 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -29,10 +29,13 @@ namespace NzbDrone.Core.Parser //Cut Movies, e.g: Mission.Impossible.3.2011.Directors.Cut new Regex(@"^(?.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)(?<edition>((\w+\.?){1,3}cut))", RegexOptions.IgnoreCase | RegexOptions.Compiled), - + //Normal movie format, e.g: Mission.Impossible.3.2011 new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)", RegexOptions.IgnoreCase | RegexOptions.Compiled), + //PassThePopcorn Torrent names: Star.Wars[PassThePopcorn] + new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(\[\w *\])))+(\W+|_|$)(?!\\)", + RegexOptions.IgnoreCase | RegexOptions.Compiled), }; private static readonly Regex[] ReportTitleRegex = new[]