mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 07:40:13 +01:00
Merge branch 'cuttingedge-merge-ServerV2' into postgres-Server-V2
This commit is contained in:
commit
502821c246
@ -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 = "")
|
||||||
|
@ -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