fix: watch button goes to current progress
This commit is contained in:
@@ -21,9 +21,9 @@ func JoinStreamingNames(anime jikan.Anime) string {
|
|||||||
return strings.Join(names, ", ")
|
return strings.Join(names, ", ")
|
||||||
}
|
}
|
||||||
|
|
||||||
func WatchTargetEpisode(currentStatus string, nextEpisode int) int {
|
func WatchTargetEpisode(currentStatus string, currentEpisode int) int {
|
||||||
if currentStatus == "watching" && nextEpisode > 0 {
|
if currentStatus != "" && currentEpisode > 0 {
|
||||||
return nextEpisode
|
return currentEpisode
|
||||||
}
|
}
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user