From a01207323fb6be82993e3a5d3bfd2a6f9a30aa3f Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 17 May 2026 21:17:15 +0200 Subject: [PATCH] feat: add sub-only badges and use canonical episodes in watch template --- templates/watch.gohtml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 2ece075..367c9b2 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -50,7 +50,7 @@
- {{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $anime.Episodes}} + {{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $totalEpisodes}}
@@ -63,7 +63,7 @@ {{end}} {{$nextEp := add (int $currentEpID) 1}} - {{if le $nextEp $anime.Episodes}} + {{if le $nextEp $totalEpisodes}} Next @@ -143,23 +143,25 @@ {{if gt $totalEpisodes 100}} {{else}}
{{range $episodes}} - {{$isCurrent := eq (printf "%v" .MalID) $currentEpID}} - {{$isFiller := .IsFiller}} - {{$isRecap := .IsRecap}} - - EP{{.MalID}} + {{$isCurrent := eq (printf "%v" .Number) $currentEpID}} + {{$isFiller := .Filler}} + {{$isRecap := .Recap}} + + EP{{.Number}} {{.Title}} + {{if .SubOnly}}Sub only{{end}} {{end}}