From 1c286e0194c274df3dd2cafcf86e6d4913fa45d9 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 95ef33e..3a5034d 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 454c93c..52c27a9 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}}