From 2d814ecd208418bb252ff17e754befba8b6c043f Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 8 Sep 2022 20:15:08 -0500 Subject: [PATCH] Fixed: Strip additional domains out of release prefix Fixes #7589 --- src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs | 1 + src/NzbDrone.Core/Parser/Parser.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs index b0fc41f52..83ce4b1c5 100644 --- a/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs @@ -46,6 +46,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("A.I.Artificial.Movie.(2001)", "A.I. Artificial Movie")] [TestCase("A.Movie.Name.(1998)", "A Movie Name")] [TestCase("www.Torrenting.com - Movie.2008.720p.X264-DIMENSION", "Movie")] + [TestCase("www.5MovieRulz.tc - Movie (2000) Malayalam HQ HDRip - x264 - AAC - 700MB.mkv", "Movie")] [TestCase("Movie: The Movie World 2013", "Movie: The Movie World")] [TestCase("Movie.The.Final.Chapter.2016", "Movie The Final Chapter")] [TestCase("Der.Movie.James.German.Bluray.FuckYou.Pso.Why.cant.you.follow.scene.rules.1998", "Der Movie James")] diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index fd36ab0eb..dfe7861a4 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -115,7 +115,7 @@ namespace NzbDrone.Core.Parser private static readonly Regex SimpleReleaseTitleRegex = new Regex(@"\s*(?:[<>?*:|])", RegexOptions.Compiled | RegexOptions.IgnoreCase); - private static readonly RegexReplace WebsitePrefixRegex = new RegexReplace(@"^\[\s*[-a-z]+(\.[a-z]+)+\s*\][- ]*|^www\.[a-z]+\.(?:com|net|org)[ -]*", + private static readonly RegexReplace WebsitePrefixRegex = new RegexReplace(@"^\[\s*[-a-z]+(\.[a-z]+)+\s*\][- ]*|^www\.[a-z0-9]+\.(?:com|net|org|casa|pics|tc)[ -]*", string.Empty, RegexOptions.IgnoreCase | RegexOptions.Compiled);