1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-26 16:13:19 +00:00

Changed some special characters to more sane values in file names

This commit is contained in:
Mark McDowall 2014-02-22 11:25:17 -08:00
parent 259c408b67
commit aed76afa52

View file

@ -247,7 +247,7 @@ public static string CleanFilename(string name)
{
string result = name;
string[] badCharacters = { "\\", "/", "<", ">", "?", "*", ":", "|", "\"" };
string[] goodCharacters = { "+", "+", "{", "}", "!", "@", "-", "#", "`" };
string[] goodCharacters = { "-", "-", "", "", "!", "-", "-", "", "" };
for (int i = 0; i < badCharacters.Length; i++)
result = result.Replace(badCharacters[i], goodCharacters[i]);