From 57a4cc4ab5115866908bef4f27ec0c9065720bc3 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 3 Jun 2023 23:44:58 +0200 Subject: [PATCH] #38 Filenames --- Tranga/Chapter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index e85d057..51eb5b3 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -34,6 +34,7 @@ public struct Chapter string volStr = this.volumeNumber is not null ? $"Vol.{this.volumeNumber} " : ""; string chNumberStr = this.chapterNumber is not null ? $"Ch.{chapterNumber} " : ""; string chNameStr = chapterName.Length > 0 ? $"- {chapterName}" : ""; + chNameStr = chNameStr.Replace("Volume", "").Replace("volume", ""); this.fileName = $"{volStr}{chNumberStr}{chNameStr}"; } } \ No newline at end of file