diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt index 9638d40d1..39c204c8e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt @@ -41,7 +41,7 @@ class Bangumi(private val context: Context, id: Int) : TrackService(id) { track.library_id = remoteTrack.library_id track.status = remoteTrack.status track.last_chapter_read = remoteTrack.last_chapter_read - update(track) + refresh(track) } else { // Set default fields if it's not found in the list track.score = DEFAULT_SCORE.toFloat() diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt index 7180156aa..ef8314e11 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt @@ -59,12 +59,12 @@ class BangumiApi(private val client: OkHttpClient, interceptor: BangumiIntercept .url("$apiUrl/collection/${track.media_id}/update") .post(sbody) .build() - return authClient.newCall(request) + return authClient.newCall(srequest) .asObservableSuccess() .map { track }.flatMap { - authClient.newCall(srequest) + authClient.newCall(request) .asObservableSuccess() .map { track