From 25f48592c0c49b0475513cdb9bd40619754c5ad0 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 4 Jul 2023 22:43:47 +0200 Subject: [PATCH] Added more badwords to filter out when searching mangasee, resolves #26 --- Tranga/Connectors/Mangasee.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Connectors/Mangasee.cs b/Tranga/Connectors/Mangasee.cs index 45cf35a..1651790 100644 --- a/Tranga/Connectors/Mangasee.cs +++ b/Tranga/Connectors/Mangasee.cs @@ -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();