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)