fix: watch button goes to current progress

This commit is contained in:
2026-04-27 20:56:33 +02:00
parent 3fba1f8d5e
commit 97261cc96e

View File

@@ -21,9 +21,9 @@ func JoinStreamingNames(anime jikan.Anime) string {
return strings.Join(names, ", ")
}
func WatchTargetEpisode(currentStatus string, nextEpisode int) int {
if currentStatus == "watching" && nextEpisode > 0 {
return nextEpisode
func WatchTargetEpisode(currentStatus string, currentEpisode int) int {
if currentStatus != "" && currentEpisode > 0 {
return currentEpisode
}
return 1
}