mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
Fix #296 AsuraToon
AsuraComic does not use Static sites, use Chromium instead. Make Puppeteer spam less logs
This commit is contained in:
parent
428d6e13d1
commit
e3bd7620aa
@ -10,7 +10,7 @@ public class AsuraToon : MangaConnector
|
|||||||
|
|
||||||
public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"])
|
public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"])
|
||||||
{
|
{
|
||||||
this.downloadClient = new HttpDownloadClient(clone);
|
this.downloadClient = new ChromiumDownloadClient(clone);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Manga[] GetManga(string publicationTitle = "")
|
public override Manga[] GetManga(string publicationTitle = "")
|
||||||
|
@ -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)
|
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));
|
logger?.WriteLine("Puppeteer", formatter.Invoke(state, exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user