Skip to content

Commit

Permalink
Fix #296 AsuraToon
Browse files Browse the repository at this point in the history
AsuraComic does not use Static sites, use Chromium instead.
Make Puppeteer spam less logs
  • Loading branch information
C9Glax committed Dec 13, 2024
1 parent 428d6e1 commit e3bd762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tranga/MangaConnectors/AsuraToon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "")
Expand Down
2 changes: 2 additions & 0 deletions Tranga/MangaConnectors/ChromiumDownloadClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public Logger(Logging.Logger? logger) : base(logger) { }

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));
}

Expand Down

0 comments on commit e3bd762

Please sign in to comment.