Small brackets change, though I dont think logic will(though knowing my luck this might have been the reason)
This commit is contained in:
parent
29a07429df
commit
730c316e89
@ -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)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user