mirror of
https://github.com/Jackett/Jackett
synced 2024-12-23 08:17:25 +00:00
Strip most non alphanumeric characters from show titles before searching
This commit is contained in:
parent
e404389254
commit
a651dea5a8
1 changed files with 9 additions and 1 deletions
|
@ -86,7 +86,15 @@ namespace Jackett
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue