mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 18:49:17 +01:00
Handle individual errors in metadata update
This commit is contained in:
parent
3b6c37a30b
commit
909917e133
@ -300,10 +300,12 @@ class LibraryUpdateService : Service() {
|
|||||||
val source = sourceManager.get(manga.source) as? OnlineSource
|
val source = sourceManager.get(manga.source) as? OnlineSource
|
||||||
?: return@concatMap Observable.empty<Manga>()
|
?: return@concatMap Observable.empty<Manga>()
|
||||||
|
|
||||||
source.fetchMangaDetails(manga).doOnNext { networkManga ->
|
source.fetchMangaDetails(manga)
|
||||||
manga.copyFrom(networkManga)
|
.doOnNext { networkManga ->
|
||||||
db.insertManga(manga).executeAsBlocking()
|
manga.copyFrom(networkManga)
|
||||||
}
|
db.insertManga(manga).executeAsBlocking()
|
||||||
|
}
|
||||||
|
.onErrorReturn { manga }
|
||||||
}
|
}
|
||||||
.doOnCompleted {
|
.doOnCompleted {
|
||||||
cancelNotification()
|
cancelNotification()
|
||||||
|
Loading…
Reference in New Issue
Block a user