From 528ff60a9f188748712fed1b23eab38a03cf63c9 Mon Sep 17 00:00:00 2001 From: namakeingo Date: Tue, 14 May 2024 11:49:35 +0100 Subject: [PATCH] Fixed: Multisubs wrongly detected as hardcoded As flagged by multiple people before "Multisubs" is a commonly used Tag that indicates that the file has more than 3 subtitle languages. Multisubs never indicate a hardcoded sub as you cannot have a multisubs where you can select between different languages if the subtitles are hardcoded in the video. This minor change excludes "MULTISUBS" from the regex used. --- src/NzbDrone.Core/Parser/Parser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 16ac26c9d..17c3c5665 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -18,7 +18,7 @@ public static class Parser private static readonly Regex ReportEditionRegex = new Regex(@"^.+?" + EditionRegex, RegexOptions.Compiled | RegexOptions.IgnoreCase); - private static readonly Regex HardcodedSubsRegex = new Regex(@"\b((?(\w+(?(HC|SUBBED)))\b", + private static readonly Regex HardcodedSubsRegex = new Regex(@"\b((?(\w+(?(HC|SUBBED)))\b", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); private static readonly RegexReplace[] PreSubstitutionRegex = Array.Empty();