improvements to LIVE tracker
This commit is contained in:
parent
9274796729
commit
581273370d
7 changed files with 45 additions and 16 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"arimelody-web/model"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
@ -63,8 +62,6 @@ func GetTwitchStatus(app *model.AppState, broadcaster string) (*model.TwitchStre
|
|||
return lastStreamState, nil
|
||||
}
|
||||
|
||||
fmt.Print("MAKING COSTLY REQUEST TO TWITCH.TV API...\n")
|
||||
|
||||
requestUrl, _ := url.Parse(TWITCH_API_BASE + "streams")
|
||||
requestUrl.RawQuery = url.Values{
|
||||
"user_login": []string{ broadcaster },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue