From 3ff2ac1043defbeeecb56875da26348994ce9fee Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 May 2023 01:56:33 +0200 Subject: [PATCH] Changed numbering scheme, because floating point. --- Tranga/Chapter.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 035c363..72f2ace 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -21,8 +21,6 @@ public struct Chapter this.chapterNumber = chapterNumber; this.url = url; string chapterName = string.Concat((name ?? "").Split(Path.GetInvalidFileNameChars())); - double multiplied = Convert.ToDouble(chapterNumber, new NumberFormatInfo() { NumberDecimalSeparator = "." }) * - Convert.ToInt32(volumeNumber); - this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {multiplied.ToString(new NumberFormatInfo() { NumberDecimalSeparator = "." })}"; + this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {volumeNumber}{chapterNumber}"; } } \ No newline at end of file