From f4f1a2e5d56054dbe671ff80f93e199b33ea4831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20F=C3=BCrni=C3=9F?= Date: Fri, 24 Mar 2023 12:36:04 +0100 Subject: [PATCH] Add n` replacement --- Jellyfin.Plugin.AniDB/Providers/equals_check.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.AniDB/Providers/equals_check.cs b/Jellyfin.Plugin.AniDB/Providers/equals_check.cs index a71bca9..2758f30 100644 --- a/Jellyfin.Plugin.AniDB/Providers/equals_check.cs +++ b/Jellyfin.Plugin.AniDB/Providers/equals_check.cs @@ -87,6 +87,7 @@ namespace Jellyfin.Plugin.AniDB.Providers a = a.Replace("OAD", "((OVA)|(OAD))", StringComparison.OrdinalIgnoreCase); a = a.Replace("c", "(c|k)", StringComparison.OrdinalIgnoreCase); a = a.Replace("k", "(c|k)", StringComparison.OrdinalIgnoreCase); + a = a.Replace("n", "n`?", StringComparison.OrdinalIgnoreCase); a = a.Replace("&", "(&|(and))", StringComparison.OrdinalIgnoreCase); a = a.Replace("and", "(&|(and))", StringComparison.OrdinalIgnoreCase); @@ -165,7 +166,7 @@ namespace Jellyfin.Plugin.AniDB.Providers string xml = File.ReadAllText(GetAnidbXml()); int lowestDistance = Plugin.Instance.Configuration.TitleSimilarityThreshold; string currentId = ""; - + foreach (string id in results) { string nameXmlFromId = OneLineRegex(new Regex(@"", RegexOptions.Compiled), xml);