Merge branch 'cuttingedge-merge-ServerV2' into postgres-Server-V2

This commit is contained in:
Glax 2024-12-13 18:54:02 +01:00
commit 502821c246
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"], ["asuracomic.net"]) public AsuraToon(GlobalBase clone) : base(clone, "AsuraToon", ["en"], ["asuracomic.net"])
{ {
this.downloadClient = new HttpDownloadClient(clone); this.downloadClient = new ChromiumDownloadClient(clone);
} }
public override Manga[] GetManga(string publicationTitle = "") 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) 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));
} }