Add back explicit update(track) call to Bangumi (mihonapp/mihon#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 mihonapp/mihon#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 Cuong-Tran
parent 4bb55a5104
commit b9da0e57f1
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

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