From 20c14a0a005fabb2d95311c70f218fd13c5942c8 Mon Sep 17 00:00:00 2001 From: Rohit Mane <53574579+12ohit@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:57:08 +0530 Subject: [PATCH] Update ChapterSourceSync.kt (#7271) --- .../java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt index d1e71785dc..7439c7f75c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt @@ -5,6 +5,7 @@ import eu.kanade.tachiyomi.data.database.DatabaseHelper import eu.kanade.tachiyomi.data.database.models.Chapter import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.data.download.DownloadManager +import eu.kanade.tachiyomi.source.LocalSource import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.online.HttpSource @@ -29,7 +30,7 @@ fun syncChaptersWithSource( manga: Manga, source: Source, ): Pair, List> { - if (rawSourceChapters.isEmpty()) { + if (rawSourceChapters.isEmpty() && source !is LocalSource) { throw NoChaptersException() }