2
0

Fix publicationId for MangaWorld

This commit is contained in:
glax 2023-11-02 15:58:04 +01:00
parent 4c1a659f16
commit 01041e43ac

View File

@ -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)