improvements to LIVE tracker

This commit is contained in:
ari melody 2025-06-17 02:01:06 +01:00
parent 9274796729
commit 581273370d
Signed by: ari
GPG key ID: CF99829C92678188
7 changed files with 45 additions and 16 deletions

View file

@ -22,7 +22,7 @@ func IndexHandler(app *model.AppState) http.Handler {
var err error
var twitchStatus *model.TwitchStreamInfo = nil
if len(app.Config.Twitch.Broadcaster) > 0 {
if app.Twitch != nil && len(app.Config.Twitch.Broadcaster) > 0 {
twitchStatus, err = controller.GetTwitchStatus(app, app.Config.Twitch.Broadcaster)
if err != nil {
fmt.Fprintf(os.Stderr, "WARN: Failed to get Twitch status for %s: %v\n", app.Config.Twitch.Broadcaster, err)