mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 19:47:51 +02:00
Small brackets change, though I dont think logic will(though knowing my luck this might have been the reason)
This commit is contained in:
@ -303,14 +303,13 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
|
|||||||
} else {
|
} else {
|
||||||
source.fetchChapterList(manga)
|
source.fetchChapterList(manga)
|
||||||
}
|
}
|
||||||
.map { syncChaptersWithSource(databaseHelper, it, manga, source) }
|
).map { syncChaptersWithSource(databaseHelper, it, manga, source) }
|
||||||
.doOnNext { pair ->
|
.doOnNext { pair ->
|
||||||
if (pair.first.isNotEmpty()) {
|
if (pair.first.isNotEmpty()) {
|
||||||
chapters.forEach { it.manga_id = manga.id }
|
chapters.forEach { it.manga_id = manga.id }
|
||||||
insertChapters(chapters)
|
insertChapters(chapters)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user