mirror of
https://github.com/jellyfin/jellyfin-plugin-anidb.git
synced 2024-11-26 15:40:40 +00:00
commit
41fee1796d
@ -88,6 +88,7 @@ namespace Jellyfin.Plugin.AniDB.Providers
|
||||
a = a.Replace("wo", "w?o", 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);
|
||||
|
||||
@ -166,7 +167,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(@"<anime aid=""" + id + @"""((?s).*?)<\/anime>", RegexOptions.Compiled), xml);
|
||||
|
Loading…
Reference in New Issue
Block a user