fixed twitch authentication

This commit is contained in:
2025-08-25 12:48:30 +02:00
parent 4e1b4bad0a
commit 4f8510bac8
7 changed files with 61 additions and 16 deletions

View File

@@ -70,6 +70,11 @@ func (c *Client) PollStream(channel string, liveChannel chan<- *StreamInfo) erro
return err
}
if len(sr.Data) == 0 {
liveChannel <- &StreamInfo{UserName: channel, IsLive: false}
return nil
}
s := sr.Data[0]
started, _ := time.Parse(time.RFC3339, s.StartedAt)