mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Add ReplaceGermanUmlauts method
This commit is contained in:
parent
e3dc31cca5
commit
cf8f690d7a
1 changed files with 13 additions and 0 deletions
|
@ -586,6 +586,19 @@ namespace NzbDrone.Core.Parser
|
||||||
return realResult;
|
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)
|
public static string ParseSeriesName(string title)
|
||||||
{
|
{
|
||||||
Logger.Debug("Parsing string '{0}'", title);
|
Logger.Debug("Parsing string '{0}'", title);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue