Commit b7af68d3c9
Unsigned
Layout: unified · split
cmd/curd/main.go +3
| @@ -187,6 +187,9 @@ func main() { | |||
| 187 | 187 | ||
| 188 | // Main loop | 188 | // Main loop |
| 189 | for { | 189 | for { |
| 190 | |||
| 191 | internal.Log(anime, logFile) | ||
| 192 | |||
| 190 | // Create a channel to signal when to exit the skip loop | 193 | // Create a channel to signal when to exit the skip loop |
| 191 | var wg sync.WaitGroup | 194 | var wg sync.WaitGroup |
| 192 | skipLoopDone := make(chan struct{}) | 195 | skipLoopDone := make(chan struct{}) |
internal/curd.go +5 −4
| @@ -748,10 +748,11 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni | |||
| 748 | } | 748 | } |
| 749 | } else { | 749 | } else { |
| 750 | // if anime found in database, use it | 750 | // if anime found in database, use it |
| 751 | anime.AllanimeId = animePointer.AllanimeId | 751 | anime.AllanimeId = animePointer.AllanimeId |
| 752 | anime.Ep.Player.PlaybackTime = animePointer.Ep.Player.PlaybackTime | 752 | anime.Ep.Player.PlaybackTime = animePointer.Ep.Player.PlaybackTime |
| 753 | anime.Ep.Resume = true | 753 | if anime.Ep.Number == animePointer.Ep.Number { |
| 754 | anime.Ep.Number = animePointer.Ep.Number | 754 | anime.Ep.Resume = true |
| 755 | } | ||
| 755 | } | 756 | } |
| 756 | 757 | ||
| 757 | if selectedAllanimeAnime.Key == "-1" { | 758 | if selectedAllanimeAnime.Key == "-1" { |