From 758d223776fca7f1c938ace0521c968a10f8603f Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sat, 26 Nov 2022 20:13:08 +0600 Subject: [PATCH] Disable generating ComicInfo.xml on download (#8619) * Disable generating ComicInfo.xml on download * Remove unused import --- .../kanade/tachiyomi/data/download/Downloader.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt index d0c43a6ad..620798936 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt @@ -12,7 +12,6 @@ import eu.kanade.domain.manga.model.Manga import eu.kanade.domain.manga.model.getComicInfo import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.cache.ChapterCache -import eu.kanade.tachiyomi.data.database.models.toDomainChapter import eu.kanade.tachiyomi.data.download.model.Download import eu.kanade.tachiyomi.data.download.model.DownloadQueue import eu.kanade.tachiyomi.data.library.LibraryUpdateNotifier @@ -539,13 +538,14 @@ class Downloader( } download.status = if (downloadedImagesCount == downloadPageCount) { - val chapterUrl = download.source.getChapterUrl(download.chapter) - createComicInfoFile( - tmpDir, - download.manga, - download.chapter.toDomainChapter()!!, - chapterUrl, - ) + // TODO: Uncomment when #8537 is resolved +// val chapterUrl = download.source.getChapterUrl(download.chapter) +// createComicInfoFile( +// tmpDir, +// download.manga, +// download.chapter.toDomainChapter()!!, +// chapterUrl, +// ) // Only rename the directory if it's downloaded. if (downloadPreferences.saveChaptersAsCBZ().get()) { archiveChapter(mangaDir, dirname, tmpDir)