mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-12 06:47:53 +02:00
moved fileName to Chapter for future checking if file exists.
This commit is contained in:
@ -149,7 +149,10 @@ public class MangaDex : Connector
|
||||
? attributes["chapter"]!.GetValue<string>()
|
||||
: null;
|
||||
|
||||
chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId));
|
||||
string chapterName = string.Concat((title ?? "").Split(Path.GetInvalidFileNameChars()));
|
||||
string relativeFilePath = $"{chapterName} - V{volume}C{chapterNum}";
|
||||
|
||||
chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId, relativeFilePath));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user