Fix #296 AsuraToon

AsuraComic does not use Static sites, use Chromium instead.
Make Puppeteer spam less logs
This commit is contained in:
Glax 2024-12-13 18:53:25 +01:00
parent 428d6e13d1
commit e3bd7620aa
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ public class AsuraToon : MangaConnector
public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"])
{
this.downloadClient = new HttpDownloadClient(clone);
this.downloadClient = new ChromiumDownloadClient(clone);
}
public override Manga[] GetManga(string publicationTitle = "")

View File

@ -43,6 +43,8 @@ internal class ChromiumDownloadClient : DownloadClient
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
{
if (logLevel <= LogLevel.Information)
return;
logger?.WriteLine("Puppeteer", formatter.Invoke(state, exception));
}