From 01041e43acc251434d11b0b29982433424b27f2f Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 2 Nov 2023 15:58:04 +0100 Subject: [PATCH] Fix publicationId for MangaWorld --- Tranga/MangaConnectors/Mangaworld.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/Mangaworld.cs b/Tranga/MangaConnectors/Mangaworld.cs index 11cfb17..243e4fb 100644 --- a/Tranga/MangaConnectors/Mangaworld.cs +++ b/Tranga/MangaConnectors/Mangaworld.cs @@ -69,7 +69,9 @@ public class Mangaworld: MangaConnector if (requestResult.htmlDocument is null) return null; - return ParseSinglePublicationFromHtml(requestResult.htmlDocument, url.Split('/')[^2]); + Regex idRex = new (@"https:\/\/www\.mangaworld\.bz\/manga\/([0-9]+\/[0-9A-z\-]+)"); + string id = idRex.Match(url).Groups[1].Value; + return ParseSinglePublicationFromHtml(requestResult.htmlDocument, id); } private Manga ParseSinglePublicationFromHtml(HtmlDocument document, string publicationId)