diff --git a/main.go b/main.go index f2e8d49..8b07806 100644 --- a/main.go +++ b/main.go @@ -317,7 +317,11 @@ func main() { json.Unmarshal(body, &broadcastResponse) showCard.SetTitle(broadcastResponse.Broadcast.NextShow.Show.Name) date := broadcastResponse.Broadcast.NextShow.Day + " " + broadcastResponse.Broadcast.NextShow.Date - host := "by: " + broadcastResponse.Broadcast.NextShow.Show.Hosts[0].Name + host := "" + if len(broadcastResponse.Broadcast.NextShow.Show.Hosts) > 0 { + host = "by: " + broadcastResponse.Broadcast.NextShow.Show.Hosts[0].Name + } else { + } showCard.SetSubTitle(date + " " + host) showAvatar.Image = loadImageURL(broadcastResponse.Broadcast.NextShow.Show.AvatarUrl) showAvatar.Refresh()