Commit b7af68d3c9

b7af68d3c919c5be03a73f5e15be93a79710a6ab

parent: 9f914617d0

Unsigned

Wraient <wraient.911@gmail.com> · 2024-12-18 14:31 UTC

Fix: Playback remains synced with upstream progress

Layout: unified · split

cmd/curd/main.go +3
@@ -187,6 +187,9 @@ func main() {
187187
188188 // Main loop
189189 for {
190
191 internal.Log(anime, logFile)
192
190193 // Create a channel to signal when to exit the skip loop
191194 var wg sync.WaitGroup
192195 skipLoopDone := make(chan struct{})
internal/curd.go +5 −4
@@ -748,10 +748,11 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni
748748 }
749749 } else {
750750 // if anime found in database, use it
751 anime.AllanimeId = animePointer.AllanimeId
752 anime.Ep.Player.PlaybackTime = animePointer.Ep.Player.PlaybackTime
753 anime.Ep.Resume = true
754 anime.Ep.Number = animePointer.Ep.Number
751 anime.AllanimeId = animePointer.AllanimeId
752 anime.Ep.Player.PlaybackTime = animePointer.Ep.Player.PlaybackTime
753 if anime.Ep.Number == animePointer.Ep.Number {
754 anime.Ep.Resume = true
755 }
755756 }
756757
757758 if selectedAllanimeAnime.Key == "-1" {