Download as CBZ (#490)

* Download as CBZ

* Better error handling for zips (code review changes)
This commit is contained in:
akabhirav
2023-02-13 00:45:58 +05:30
committed by GitHub
parent 544bf2ea21
commit 555f73b478
7 changed files with 118 additions and 1 deletions

View File

@@ -47,6 +47,11 @@ private fun getChapterDir(mangaId: Int, chapterId: Int): String {
fun getChapterDownloadPath(mangaId: Int, chapterId: Int): String {
return applicationDirs.mangaDownloadsRoot + "/" + getChapterDir(mangaId, chapterId)
}
fun getChapterCbzPath(mangaId: Int, chapterId: Int): String {
return getChapterDownloadPath(mangaId, chapterId) + ".cbz"
}
fun getChapterCachePath(mangaId: Int, chapterId: Int): String {
return applicationDirs.tempMangaCacheRoot + "/" + getChapterDir(mangaId, chapterId)
}