From c70fb28d2d52bfa560662b1f2744c91b65bd2e71 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 16 Jun 2026 17:25:21 +0200 Subject: [PATCH] fix: pass error data to video player template --- templates/components/video_player.gohtml | 1 + templates/watch.gohtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/components/video_player.gohtml b/templates/components/video_player.gohtml index 95ef33e9..3a5034d0 100644 --- a/templates/components/video_player.gohtml +++ b/templates/components/video_player.gohtml @@ -11,6 +11,7 @@ data-available-modes='{{json .WatchData.AvailableModes}}' data-segments='{{json .WatchData.Segments}}' data-is-airing="{{.WatchData.Airing}}" + data-playback-error="{{.Error}}" data-stream-url="/watch/proxy/stream" data-anime-title-english="{{.WatchData.Title}}" data-anime-image="{{.WatchData.MalID}}" diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 454c93c7..52c27a9a 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -19,7 +19,7 @@
- {{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $totalEpisodes}} + {{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $totalEpisodes "Error" .Error}}