improvements to LIVE tracker
This commit is contained in:
parent
9274796729
commit
581273370d
7 changed files with 45 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue