From 3485eac88c5b284c0885bec43f574d3387c02a21 Mon Sep 17 00:00:00 2001 From: glax <--local> Date: Thu, 18 May 2023 19:51:26 +0200 Subject: [PATCH] More appropriate name for chapter filename --- Tranga/Chapter.cs | 6 +++--- Tranga/Connectors/MangaDex.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index f51eaa1..a326624 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -8,15 +8,15 @@ public struct Chapter public string? chapterNumber { get; } public string url { get; } - public string relativeFilePath { get; } + public string fileName { get; } - public Chapter(Publication publication, string? name, string? volumeNumber, string? chapterNumber, string url, string relativeFilePath) + public Chapter(Publication publication, string? name, string? volumeNumber, string? chapterNumber, string url, string fileName) { this.publication = publication; this.name = name; this.volumeNumber = volumeNumber; this.chapterNumber = chapterNumber; this.url = url; - this.relativeFilePath = relativeFilePath; + this.fileName = fileName; } } \ No newline at end of file diff --git a/Tranga/Connectors/MangaDex.cs b/Tranga/Connectors/MangaDex.cs index d35fdff..a2477cc 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -152,9 +152,9 @@ public class MangaDex : Connector : null; string chapterName = string.Concat((title ?? "").Split(Path.GetInvalidFileNameChars())); - string relativeFilePath = $"{chapterName} - V{volume}C{chapterNum}"; + string chapterFileName = $"{chapterName} - V{volume}C{chapterNum}"; - chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId, relativeFilePath)); + chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId, chapterFileName)); } }