Add back explicit update(track) call to Bangumi (#1771)

Most if not all other trackers do this too. Technically this causes
some request duplication (since things like the BaseTracker's
setRemoteLastChapterRead fire anyway due to the tracker sheet being
open. But considering the reduced number of requests in other places,
I think this is still acceptable.

This change will allow #1736 to proceed, hopefully.

(cherry picked from commit 277d8bad8e8d21cd74dc1681da09a4b980f455e0)
This commit is contained in:
MajorTanya 2025-02-25 06:37:23 +01:00 committed by Jobobby04
parent a97deb0036
commit 66f2877a3f

View File

@ -59,7 +59,7 @@ class Bangumi(id: Long) : BaseTracker(id, "Bangumi") {
track.status = if (hasReadChapters) READING else statusTrack.status track.status = if (hasReadChapters) READING else statusTrack.status
} }
track update(track)
} else { } else {
// Set default fields if it's not found in the list // Set default fields if it's not found in the list
track.status = if (hasReadChapters) READING else PLAN_TO_READ track.status = if (hasReadChapters) READING else PLAN_TO_READ