main: remove GetPlaylist() its not used like this - twitch-go - twitch.tv web application in Go
(HTM) git clone git://git.codemadness.org/twitch-go
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0c60e04a9eb3ae0d7271616371b8de391df2e629
(DIR) parent cf1825798ca90eb1435e127adf470d194d24a588
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 11 Apr 2015 20:53:55 +0200
main: remove GetPlaylist() its not used like this
Diffstat:
M main.go | 14 --------------
1 file changed, 0 insertions(+), 14 deletions(-)
---
(DIR) diff --git a/main.go b/main.go
@@ -272,20 +272,6 @@ func GetToken(channel string) (*TwitchToken, error) {
return &v, nil
}
-func GetPlaylist(channel string) ([]byte, error) {
- token, err := GetToken(channel)
- if err != nil {
- return nil, err
- }
- s := fmt.Sprintf("http://usher.justin.tv/api/channel/hls/%s.m3u8?token=%s&sig=%s",
- channel, token.Token, token.Sig)
- body, err := ReadAllUrl(s)
- if err != nil {
- return nil, err
- }
- return body, nil
-}
-
func GetFeatured() (*TwitchFeatured, error) {
url := "https://api.twitch.tv/kraken/streams/featured?limit=100"
body, err := ReadAllUrl(url)