mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-02-07 04:00:31 +01:00
fixed wrong variable bug
This commit is contained in:
parent
f5225f9f29
commit
a54b5e9e1f
@ -20,7 +20,7 @@ public struct Chapter
|
|||||||
this.chapterNumber = chapterNumber;
|
this.chapterNumber = chapterNumber;
|
||||||
this.url = url;
|
this.url = url;
|
||||||
string chapterName = string.Concat((name ?? "").Split(Path.GetInvalidFileNameChars()));
|
string chapterName = string.Concat((name ?? "").Split(Path.GetInvalidFileNameChars()));
|
||||||
double multiplied = Convert.ToDouble(chapterName, new NumberFormatInfo() { NumberDecimalSeparator = "." }) *
|
double multiplied = Convert.ToDouble(chapterNumber, new NumberFormatInfo() { NumberDecimalSeparator = "." }) *
|
||||||
Convert.ToInt32(volumeNumber);
|
Convert.ToInt32(volumeNumber);
|
||||||
this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {multiplied}";
|
this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {multiplied}";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user