From f92bcebe04d312968b7229a11aa60aae378df4df Mon Sep 17 00:00:00 2001 From: glax <--local> Date: Thu, 18 May 2023 19:55:49 +0200 Subject: [PATCH] renamed variable --- Tranga/Connector.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index 26c4dbb..36d43fe 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -17,7 +17,7 @@ public abstract class Connector public abstract void DownloadChapter(Publication publication, Chapter chapter); //where to? protected abstract void DownloadImage(string url, string savePath); - internal void DownloadChapter(string[] imageUrls, string outputFilePath) + internal void DownloadChapter(string[] imageUrls, string saveArchiveFilePath) { string tempFolder = Path.GetTempFileName(); File.Delete(tempFolder); @@ -31,12 +31,12 @@ public abstract class Connector DownloadImage(imageUrl, Path.Join(tempFolder, $"{chapter++}.{extension}")); } - string[] splitPath = outputFilePath.Split(Path.DirectorySeparatorChar); + string[] splitPath = saveArchiveFilePath.Split(Path.DirectorySeparatorChar); string directoryPath = Path.Combine(splitPath.Take(splitPath.Length - 1).ToArray()); if (!Directory.Exists(directoryPath)) Directory.CreateDirectory(directoryPath); - string fullPath = $"{outputFilePath}.cbz"; + string fullPath = $"{saveArchiveFilePath}.cbz"; File.Delete(fullPath); ZipFile.CreateFromDirectory(tempFolder, fullPath); }