From 61d80a93cf24f5b2ecc685b5806d5fffdba297e6 Mon Sep 17 00:00:00 2001 From: Glax Date: Fri, 27 Sep 2024 14:50:57 +0200 Subject: [PATCH] Fix #255 MangaKatana sanitization. --- Tranga/MangaConnectors/MangaKatana.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/MangaKatana.cs b/Tranga/MangaConnectors/MangaKatana.cs index 32bc78d..bc77637 100644 --- a/Tranga/MangaConnectors/MangaKatana.cs +++ b/Tranga/MangaConnectors/MangaKatana.cs @@ -15,7 +15,7 @@ public class MangaKatana : MangaConnector public override Manga[] GetManga(string publicationTitle = "") { Log($"Searching Publications. Term=\"{publicationTitle}\""); - string sanitizedTitle = string.Join('_', Regex.Matches(publicationTitle, "[A-z]*").Where(m => m.Value.Length > 0)).ToLower(); + string sanitizedTitle = string.Join("%20", Regex.Matches(publicationTitle, "[A-z]*").Where(m => m.Value.Length > 0)).ToLower(); string requestUrl = $"https://mangakatana.com/?search={sanitizedTitle}&search_by=book_name"; RequestResult requestResult = downloadClient.MakeRequest(requestUrl, RequestType.Default);