mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 21:01:51 +01:00
parent
3e7ad9dbd3
commit
d3a1d8a8a9
@ -36,7 +36,9 @@ fun syncChaptersWithSource(
|
|||||||
// Chapters from db.
|
// Chapters from db.
|
||||||
val dbChapters = db.getChapters(manga).executeAsBlocking()
|
val dbChapters = db.getChapters(manga).executeAsBlocking()
|
||||||
|
|
||||||
val sourceChapters = rawSourceChapters.mapIndexed { i, sChapter ->
|
val sourceChapters = rawSourceChapters
|
||||||
|
.distinctBy { it.url }
|
||||||
|
.mapIndexed { i, sChapter ->
|
||||||
Chapter.create().apply {
|
Chapter.create().apply {
|
||||||
copyFrom(sChapter)
|
copyFrom(sChapter)
|
||||||
manga_id = manga.id
|
manga_id = manga.id
|
||||||
|
Loading…
Reference in New Issue
Block a user