Skip to content

Commit 13f5486

Browse files
authored
Fix CBZ download bug for newly added mangas in Library (#499)
1 parent d4e7127 commit 13f5486

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/kotlin/suwayomi/tachidesk/manga/impl/download/ArchiveProvider.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ class ArchiveProvider(mangaId: Int, chapterId: Int) : DownloadedFilesProvider(ma
3333
val chapterFolder = File(chapterDir)
3434
if (outputFile.exists()) handleExistingCbzFile(outputFile, chapterFolder)
3535

36+
37+
FolderProvider(mangaId, chapterId).download(download, scope, step)
38+
3639
withContext(Dispatchers.IO) {
3740
outputFile.createNewFile()
3841
}
3942

40-
FolderProvider(mangaId, chapterId).download(download, scope, step)
41-
4243
ZipOutputStream(outputFile.outputStream()).use { zipOut ->
4344
if (chapterFolder.isDirectory) {
4445
chapterFolder.listFiles()?.sortedBy { it.name }?.forEach {

0 commit comments

Comments
 (0)