mirror of https://github.com/Jackett/Jackett
Strip most non alphanumeric characters from show titles before searching
This commit is contained in:
parent
e404389254
commit
a651dea5a8
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue