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}}
{{range $episodes}} - {{$isCurrent := eq (printf "%v" .MalID) $currentEpID}} - {{$isFiller := .IsFiller}} - {{$isRecap := .IsRecap}} - - {{.MalID}} + {{$isCurrent := eq (printf "%v" .Number) $currentEpID}} + {{$isFiller := .Filler}} + {{$isRecap := .Recap}} + + {{.Number}} + {{if .SubOnly}}Sub{{end}} {{end}}
{{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}}