From 8e487ccd1324245d5ec44668e95f3eef4259236f Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 19 Jun 2023 23:08:05 +0200 Subject: [PATCH] Move manga downloads into "mangas" subfolder --- .../main/kotlin/suwayomi/tachidesk/manga/impl/util/DirName.kt | 2 +- server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/DirName.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/DirName.kt index 6b5e33a56c..cc15edb5ff 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/DirName.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/DirName.kt @@ -49,7 +49,7 @@ fun getThumbnailDownloadPath(mangaId: Int): String { } fun getChapterDownloadPath(mangaId: Int, chapterId: Int): String { - return applicationDirs.downloadsRoot + "/" + getChapterDir(mangaId, chapterId) + return applicationDirs.mangaDownloadsRoot + "/" + getChapterDir(mangaId, chapterId) } fun getChapterCbzPath(mangaId: Int, chapterId: Int): String { diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt index 4d46724a44..f504afb324 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt @@ -54,6 +54,7 @@ class ApplicationDirs( val tempMangaCacheRoot = "$tempRoot/manga-cache" val thumbnailDownloadsRoot = "$downloadsRoot/thumbnails" + val mangaDownloadsRoot = "$downloadsRoot/mangas" } val serverConfig: ServerConfig by lazy { GlobalConfigManager.module() }