mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 18:38:23 +01:00
Disable generating ComicInfo.xml on download (#8619)
* Disable generating ComicInfo.xml on download * Remove unused import
This commit is contained in:
parent
21a9bf2463
commit
758d223776
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user