depricate zero based chapters

This commit is contained in:
Aria Moradi
2021-09-17 16:31:47 +04:30
parent 47e04c08d0
commit 6c62ddf927
2 changed files with 27 additions and 10 deletions

View File

@@ -222,11 +222,14 @@ object Chapter {
}
}
private fun firstPageExists(mangaId: Int, chapterId: Int): Boolean =
CachedImageResponse.findFileNameStartingWith(
Page.getChapterDir(mangaId, chapterId),
getPageName(0)
private fun firstPageExists(mangaId: Int, chapterId: Int): Boolean {
val chapterDir = Page.getChapterDir(mangaId, chapterId)
return CachedImageResponse.findFileNameStartingWith(
chapterDir,
getPageName(0, chapterDir)
) != null
}
fun modifyChapter(
mangaId: Int,