mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-10 14:24:34 -05:00
Download as CBZ (#490)
* Download as CBZ * Better error handling for zips (code review changes)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user