fix: route watchlist clicks to anime
This commit is contained in:
@@ -121,12 +121,7 @@ templ ifHasProgress(entry database.GetUserWatchListRow) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func watchURL(entry database.GetUserWatchListRow) string {
|
func watchURL(entry database.GetUserWatchListRow) string {
|
||||||
episode := 1
|
return fmt.Sprintf("/anime/%d", entry.AnimeID)
|
||||||
if entry.CurrentEpisode.Valid && entry.CurrentEpisode.Int64 > 0 {
|
|
||||||
episode = int(entry.CurrentEpisode.Int64)
|
|
||||||
}
|
|
||||||
|
|
||||||
return fmt.Sprintf("/watch/%d/%d", entry.AnimeID, episode)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func formatProgressTime(seconds float64) string {
|
func formatProgressTime(seconds float64) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user