From 82978e90d8e131b00a2d92ff51a84c4fb3ffc268 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Thu, 25 Mar 2021 01:50:30 -0400 Subject: [PATCH] Fix #606 --- .../main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt index f1dfb262a2..af421b97e3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt @@ -135,7 +135,7 @@ class Anilist(private val context: Context, id: Int) : TrackService(id) { } override suspend fun update(track: Track): Track { - if (track.total_chapters != 0 && track.last_chapter_read == track.total_chapters) { + if (track.status == READING && track.total_chapters != 0 && track.last_chapter_read == track.total_chapters) { track.status = COMPLETED } // If user was using API v1 fetch library_id