Private GIT

Skip to content
Snippets Groups Projects
Commit 56bbee2f authored by unknown's avatar unknown
Browse files

Strip most non alphanumeric characters from show titles before searching

parent b58566c7
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,15 @@ namespace Jackett ...@@ -86,7 +86,15 @@ namespace Jackett
string SanitizeTitle(string title) string SanitizeTitle(string title)
{ {
return title.Replace("(", "").Replace(")", ""); char[] arr = title.ToCharArray();
arr = Array.FindAll<char>(arr, c => (char.IsLetterOrDigit(c)
|| char.IsWhiteSpace(c)
|| c == '-'
|| c == '.'
));
title = new string(arr);
return title;
} }
void LoadSettings() void LoadSettings()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment