moved fileName to Chapter for future checking if file exists.

This commit is contained in:
glax
2023-05-18 18:42:36 +02:00
parent 57c7f175d9
commit d191f5dfc7
2 changed files with 8 additions and 2 deletions

View File

@ -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));
}
}