From adbbe3f6cc5883ad9ab85a7bb0b9c3b772bdb38f Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 1 Jun 2023 13:27:58 +0200 Subject: [PATCH] logs --- Tranga/Connectors/Manganato.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tranga/Connectors/Manganato.cs b/Tranga/Connectors/Manganato.cs index dbe1672..419f25d 100644 --- a/Tranga/Connectors/Manganato.cs +++ b/Tranga/Connectors/Manganato.cs @@ -21,6 +21,7 @@ public class Manganato : Connector public override Publication[] GetPublications(string publicationTitle = "") { + logger?.WriteLine(this.GetType().ToString(), $"Getting Publications (title={publicationTitle})"); string sanitizedTitle = publicationTitle.ToLower().Replace(' ', '_'); logger?.WriteLine(this.GetType().ToString(), $"Getting Publications (title={sanitizedTitle})"); string requestUrl = $"https://manganato.com/search/story/{sanitizedTitle}"; @@ -121,6 +122,7 @@ public class Manganato : Connector public override Chapter[] GetChapters(Publication publication, string language = "") { + logger?.WriteLine(this.GetType().ToString(), $"Getting Chapters for {publication.sortName} {publication.internalId} (language={language})"); string requestUrl = $"https://manganato.com/{publication.publicationId}"; DownloadClient.RequestResult requestResult = downloadClient.MakeRequest(requestUrl, (byte)1); @@ -157,6 +159,7 @@ public class Manganato : Connector public override void DownloadChapter(Publication publication, Chapter chapter) { + logger?.WriteLine(this.GetType().ToString(), $"Downloading Chapter-Info {publication.sortName} {publication.internalId} {chapter.volumeNumber}-{chapter.chapterNumber}"); string requestUrl = chapter.url; DownloadClient.RequestResult requestResult = downloadClient.MakeRequest(requestUrl, (byte)1);