fix: Also auto append non-split page

This commit is contained in:
Ahmad Ansori Palembani 2024-06-02 14:22:33 +07:00
parent 28bad0b3a9
commit fa87e826f8
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -758,7 +758,7 @@ class ReaderViewModel(
// Build destination file. // Build destination file.
val filename = DiskUtil.buildValidFilename( val filename = DiskUtil.buildValidFilename(
"${manga.title} - ${chapter.preferredChapterName(context, manga, preferences)}".take(225), "${manga.title} - ${chapter.preferredChapterName(context, manga, preferences)}".take(225),
) + " - ${page.number}.${type.extension}" ) + (if (downloadPreferences.downloadWithId().get()) " (${chapter.id})" else "") + " - ${page.number}.${type.extension}"
val destFile = directory.createFile(filename)!! val destFile = directory.createFile(filename)!!
stream().use { input -> stream().use { input ->