1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-06-30 09:39:52 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
namakeingo
c63f7cefb6
Merge 528ff60a9f into 4cbf5cfc57 2024-06-12 18:18:15 +02:00
namakeingo
528ff60a9f 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.
2024-05-14 12:18:36 +01:00

View File

@ -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((?<hcsub>(\w+(?<!SOFT|HORRIBLE)SUBS?))|(?<hc>(HC|SUBBED)))\b",
private static readonly Regex HardcodedSubsRegex = new Regex(@"\b((?<hcsub>(\w+(?<!SOFT|MULTI|HORRIBLE)SUBS?))|(?<hc>(HC|SUBBED)))\b",
RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
private static readonly RegexReplace[] PreSubstitutionRegex = Array.Empty<RegexReplace>();