Added more badwords to filter out when searching mangasee, resolves #26

This commit is contained in:
glax 2023-07-04 22:43:47 +02:00
parent 398ac304d2
commit 25f48592c0

View File

@ -184,7 +184,7 @@ public class Mangasee : Connector
{
int ret = 0;
Regex cleanRex = new("[A-z0-9]*");
string[] badWords = { "a", "so", "as", "and" };
string[] badWords = { "a", "so", "as", "and", "the", "of", "that", "in", "is", "for" };
string[] titleTerms = title.Split(new[] { ' ', '-' }).Where(str => !badWords.Contains(str)).ToArray();