mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 03:03:16 -05:00
Update ChapterSourceSync.kt (#7271)
This commit is contained in:
parent
06fdfcdb23
commit
20c14a0a00
1 changed files with 2 additions and 1 deletions
|
@ -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<Chapter>, List<Chapter>> {
|
||||
if (rawSourceChapters.isEmpty()) {
|
||||
if (rawSourceChapters.isEmpty() && source !is LocalSource) {
|
||||
throw NoChaptersException()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue