From 726be70af337c4534d4f62c590eec685e2b6b072 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 14 Oct 2023 12:59:35 +0200 Subject: [PATCH] #66 Mangasee search sanitization --- Tranga/MangaConnectors/Mangasee.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/Mangasee.cs b/Tranga/MangaConnectors/Mangasee.cs index 651a2ce..508615c 100644 --- a/Tranga/MangaConnectors/Mangasee.cs +++ b/Tranga/MangaConnectors/Mangasee.cs @@ -19,7 +19,7 @@ public class Mangasee : MangaConnector public override Manga[] GetManga(string publicationTitle = "") { Log($"Searching Publications. Term=\"{publicationTitle}\""); - string sanitizedTitle = string.Join('+', Regex.Matches(publicationTitle, "[A-z]*").Where(str => str.Length > 0)).ToLower(); + string sanitizedTitle = WebUtility.UrlEncode(publicationTitle); string requestUrl = $"https://mangasee123.com/search/?name={sanitizedTitle}"; DownloadClient.RequestResult requestResult = downloadClient.MakeRequest(requestUrl, 1);