From cf8f690d7a56340398e61f353f07586c49129db3 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 5 Mar 2017 20:13:13 -0500 Subject: [PATCH] Add ReplaceGermanUmlauts method --- src/NzbDrone.Core/Parser/Parser.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index b866eb790..b87844679 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -586,6 +586,19 @@ namespace NzbDrone.Core.Parser return realResult; } + public static string ReplaceGermanUmlauts(string s) + { + var t = s; + t = t.Replace("ä", "ae"); + t = t.Replace("ö", "oe"); + t = t.Replace("ü", "ue"); + t = t.Replace("Ä", "Ae"); + t = t.Replace("Ö", "Oe"); + t = t.Replace("Ü", "Ue"); + t = t.Replace("ß", "ss"); + return t; + } + public static string ParseSeriesName(string title) { Logger.Debug("Parsing string '{0}'", title);