Commit bf78e28bfb

bf78e28bfb39df411237ee7ef432b0eb6abb1a4d

parent: 003fe6999a

Unsigned

Wraient <wraient.911@gmail.com> · 2026-01-05 09:01 UTC

Fix: finish watching an anime (it automatically gets moved to "completed" anilist
select the anime from "all" or "completed", confirm it being moved back into "watching", dont start from beginning.
finish watching said anime
observe that it stays in "watching" and is not moved back into "completed"

Layout: unified · split

cmd/curd/main.go +5 −1
@@ -190,7 +190,7 @@ func main() {
190190 internal.Log("Error finding anime by Anilist ID: " + err.Error())
191191 }
192192
193 if anime.TotalEpisodes == temp_anime.Progress {
193 if anime.TotalEpisodes == temp_anime.Progress && temp_anime.Status != "CURRENT" {
194194 internal.Log(temp_anime.Progress)
195195 internal.Log(anime.TotalEpisodes)
196196 internal.Log(user.AnimeList)
@@ -567,6 +567,10 @@ func main() {
567567 internal.StartNextEpisode(&anime, &userCurdConfig, databaseFile, user.Token)
568568 } else {
569569 // Episode was already marked as completed above
570 // Handle completion if this was the last episode
571 if anime.Ep.Number == anime.TotalEpisodes {
572 internal.HandleLastEpisodeCompletion(&userCurdConfig, &anime, user.Token)
573 }
570574 // Update local database with completed episode
571575 err := internal.LocalUpdateAnime(databaseFile, anime.AnilistId, anime.AllanimeId, anime.Ep.Number, anime.Ep.Player.PlaybackTime, internal.ConvertSecondsToMinutes(anime.Ep.Duration), internal.GetAnimeName(anime))
572576 if err != nil {
internal/curd.go +5
@@ -1469,6 +1469,11 @@ func NextEpisodePromptContinuous(userCurdConfig *CurdConfig, databaseFile string
14691469 // Episode is considered completed, mark it and update progress
14701470 anime.Ep.IsCompleted = true
14711471
1472 // Handle completion if this was the last episode
1473 if anime.Ep.Number == anime.TotalEpisodes {
1474 HandleLastEpisodeCompletion(userCurdConfig, anime, userToken)
1475 }
1476
14721477 // Update local database
14731478 err = LocalUpdateAnime(databaseFile, anime.AnilistId, anime.AllanimeId, anime.Ep.Number, anime.Ep.Player.PlaybackTime, ConvertSecondsToMinutes(anime.Ep.Duration), GetAnimeName(*anime))
14741479 if err != nil {