2
0

Asuratoon Server-V2

This commit is contained in:
Glax 2024-11-11 17:09:19 +01:00
parent 483dcc41df
commit 1bd914571c

View File

@ -8,7 +8,7 @@ namespace Tranga.MangaConnectors;
public class AsuraToon : MangaConnector public class AsuraToon : MangaConnector
{ {
public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"]) public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"], ["asuracomic.net"])
{ {
this.downloadClient = new HttpDownloadClient(clone); this.downloadClient = new HttpDownloadClient(clone);
} }
@ -111,7 +111,7 @@ public class AsuraToon : MangaConnector
HtmlNode? firstChapterNode = document.DocumentNode.SelectSingleNode("//a[contains(@href, 'chapter/1')]/../following-sibling::h3"); HtmlNode? firstChapterNode = document.DocumentNode.SelectSingleNode("//a[contains(@href, 'chapter/1')]/../following-sibling::h3");
int? year = int.Parse(firstChapterNode?.InnerText.Split(' ')[^1] ?? "2000"); int? year = int.Parse(firstChapterNode?.InnerText.Split(' ')[^1] ?? "2000");
Manga manga = new (sortName, authors, description, altTitles, tags, coverUrl, coverFileNameInCache, links, Manga manga = new (this, sortName, authors, description, altTitles, tags, coverUrl, coverFileNameInCache, links,
year, originalLanguage, publicationId, releaseStatus, websiteUrl); year, originalLanguage, publicationId, releaseStatus, websiteUrl);
AddMangaToCache(manga); AddMangaToCache(manga);
return manga; return manga;