From ba428c401d7e2d8eceaf0c92251aa3ea868fb5d0 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 22 Dec 2016 16:34:34 +0100 Subject: [PATCH] Fix Kitsu refresh method --- .../main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt index 807dba005..51d364321 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt @@ -130,9 +130,10 @@ class Kitsu(private val context: Context, id: Int) : TrackService(id) { override fun refresh(track: Track): Observable { return api.getLibManga(track) - .doOnNext { remoteTrack -> + .map { remoteTrack -> track.copyPersonalFrom(remoteTrack) track.total_chapters = remoteTrack.total_chapters + track } }