DownloadProvider: Only provide necessary info and not whole chapter/manga class (#7411)

This commit is contained in:
AntsyLich
2022-06-30 19:20:55 +06:00
committed by GitHub
parent 388dc2f103
commit e1525a5125
10 changed files with 83 additions and 61 deletions

View File

@@ -96,7 +96,7 @@ class SyncChaptersWithSource(
toAdd.add(toAddChapter)
} else {
if (shouldUpdateDbChapter.await(dbChapter, chapter)) {
if (dbChapter.name != chapter.name && downloadManager.isChapterDownloaded(dbChapter.toDbChapter(), manga.toDbManga())) {
if (dbChapter.name != chapter.name && downloadManager.isChapterDownloaded(dbChapter.name, dbChapter.scanlator, manga.title, manga.source)) {
downloadManager.renameChapter(source, manga.toDbManga(), dbChapter.toDbChapter(), chapter.toDbChapter())
}
var toChangeChapter = dbChapter.copy(