diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 9f0d8d3..d25c0a8 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -4,6 +4,7 @@ {{$anime := .Anime}} {{$episodes := .Episodes}} {{$currentEpID := .CurrentEpID}} +{{if or (not $currentEpID) (eq (printf "%v" $currentEpID) "0") (eq (printf "%v" $currentEpID) "")}}{{$currentEpID = "1"}}{{end}} {{$totalEpisodes := len $episodes}}