1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Add ReplaceGermanUmlauts method

This commit is contained in:
Devin Buhl 2017-03-05 20:13:13 -05:00 committed by GitHub
parent e3dc31cca5
commit cf8f690d7a

View File

@ -586,6 +586,19 @@ public static ParsedEpisodeInfo ParseTitle(string title)
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);