diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index b30783c..b132e64 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -57,16 +57,15 @@ public abstract class Connector public abstract void DownloadChapter(Publication publication, Chapter chapter); /// - /// Retrieves the Cover from the Website + /// Copies the already downloaded cover from cache to downloadLocation /// /// Publication to retrieve Cover for /// TrangaSettings - public void CloneCoverFromCache(Publication publication, TrangaSettings settings) + public void CopyCoverFromCacheToDownloadLocation(Publication publication, TrangaSettings settings) { - logger?.WriteLine(this.GetType().ToString(), $"Cloning cover {publication.sortName}"); + logger?.WriteLine(this.GetType().ToString(), $"Cloning cover {publication.sortName} {publication.internalId}"); //Check if Publication already has a Folder and cover string publicationFolder = Path.Join(downloadLocation, publication.folderName); - if(!Directory.Exists(publicationFolder)) Directory.CreateDirectory(publicationFolder); DirectoryInfo dirInfo = new (publicationFolder); diff --git a/Tranga/TaskExecutor.cs b/Tranga/TaskExecutor.cs index 284cb1e..7a09372 100644 --- a/Tranga/TaskExecutor.cs +++ b/Tranga/TaskExecutor.cs @@ -98,7 +98,7 @@ public static class TaskExecutor Directory.CreateDirectory(publicationFolder); List newChapters = UpdateChapters(connector, publication, language, ref chapterCollection); - connector.CloneCoverFromCache(publication, settings); + connector.CopyCoverFromCacheToDownloadLocation(publication, settings); publication.SaveSeriesInfoJson(connector.downloadLocation);