Fix Kitsu refresh method

This commit is contained in:
len 2016-12-22 16:34:34 +01:00
parent 510669ee2c
commit ba428c401d

View File

@ -130,9 +130,10 @@ class Kitsu(private val context: Context, id: Int) : TrackService(id) {
override fun refresh(track: Track): Observable<Track> {
return api.getLibManga(track)
.doOnNext { remoteTrack ->
.map { remoteTrack ->
track.copyPersonalFrom(remoteTrack)
track.total_chapters = remoteTrack.total_chapters
track
}
}