From 9906b95893660a929cb9fd1393e28f09d8ada354 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 23 Sep 2025 16:22:27 -0500 Subject: [PATCH] New: Prioritize Exact Exception Release Group Matches over non-Exact Exception Groups --- src/NzbDrone.Core/Parser/ReleaseGroupParser.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Core/Parser/ReleaseGroupParser.cs b/src/NzbDrone.Core/Parser/ReleaseGroupParser.cs index e8f81a3146..20b3a5093b 100644 --- a/src/NzbDrone.Core/Parser/ReleaseGroupParser.cs +++ b/src/NzbDrone.Core/Parser/ReleaseGroupParser.cs @@ -49,13 +49,6 @@ public static string ParseReleaseGroup(string title) title = CleanReleaseGroupRegex.Replace(title); - var exceptionReleaseGroupRegex = ExceptionReleaseGroupRegex.Matches(title); - - if (exceptionReleaseGroupRegex.Count != 0) - { - return exceptionReleaseGroupRegex.OfType().Last().Groups["releasegroup"].Value; - } - var exceptionExactMatch = ExceptionReleaseGroupRegexExact.Matches(title); if (exceptionExactMatch.Count != 0) @@ -63,6 +56,13 @@ public static string ParseReleaseGroup(string title) return exceptionExactMatch.OfType().Last().Groups["releasegroup"].Value; } + var exceptionReleaseGroupRegex = ExceptionReleaseGroupRegex.Matches(title); + + if (exceptionReleaseGroupRegex.Count != 0) + { + return exceptionReleaseGroupRegex.OfType().Last().Groups["releasegroup"].Value; + } + var matches = ReleaseGroupRegex.Matches(title); if (matches.Count != 0)