From e3bd7620aa97c13b5d4b0534e5913478c489f424 Mon Sep 17 00:00:00 2001 From: Glax Date: Fri, 13 Dec 2024 18:53:25 +0100 Subject: [PATCH] Fix #296 AsuraToon AsuraComic does not use Static sites, use Chromium instead. Make Puppeteer spam less logs --- Tranga/MangaConnectors/AsuraToon.cs | 2 +- Tranga/MangaConnectors/ChromiumDownloadClient.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tranga/MangaConnectors/AsuraToon.cs b/Tranga/MangaConnectors/AsuraToon.cs index a954a95..b19334a 100644 --- a/Tranga/MangaConnectors/AsuraToon.cs +++ b/Tranga/MangaConnectors/AsuraToon.cs @@ -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 = "") diff --git a/Tranga/MangaConnectors/ChromiumDownloadClient.cs b/Tranga/MangaConnectors/ChromiumDownloadClient.cs index f48b2ed..3b5e63d 100644 --- a/Tranga/MangaConnectors/ChromiumDownloadClient.cs +++ b/Tranga/MangaConnectors/ChromiumDownloadClient.cs @@ -43,6 +43,8 @@ public Logger(Logging.Logger? logger) : base(logger) { } public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter) { + if (logLevel <= LogLevel.Information) + return; logger?.WriteLine("Puppeteer", formatter.Invoke(state, exception)); }