fix: route watchlist clicks to anime

This commit is contained in:
2026-04-18 23:10:00 +02:00
parent 9c3b87deaf
commit 398c7353fa

View File

@@ -121,12 +121,7 @@ templ ifHasProgress(entry database.GetUserWatchListRow) {
}
func watchURL(entry database.GetUserWatchListRow) string {
episode := 1
if entry.CurrentEpisode.Valid && entry.CurrentEpisode.Int64 > 0 {
episode = int(entry.CurrentEpisode.Int64)
}
return fmt.Sprintf("/watch/%d/%d", entry.AnimeID, episode)
return fmt.Sprintf("/anime/%d", entry.AnimeID)
}
func formatProgressTime(seconds float64) string {