Show not downloaded chapters in local manga

This commit is contained in:
Koitharu
2021-07-24 10:51:26 +03:00
parent e8e95a485b
commit 7f5ef227eb
17 changed files with 234 additions and 58 deletions

View File

@@ -98,7 +98,10 @@ class LocalMangaRepository(private val context: Context) : MangaRepository {
entryName = index.getCoverEntry()
?: findFirstEntry(zip.entries(), isImage = true)?.name.orEmpty()
),
chapters = info.chapters?.map { c -> c.copy(url = fileUri) }
chapters = info.chapters?.map { c ->
c.copy(url = fileUri,
source = MangaSource.LOCAL)
}
)
}
// fallback