diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-06-20 22:31:36 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-06-20 22:31:36 -0400 |
| commit | 05c00b03c4e1503ed7e90b21d3caecc04b35e8d4 (patch) | |
| tree | 4fb84d1ecb6dc458551df5ad38ef6f24f1c9eefd /lfmclient.go | |
| parent | 8e59b53a6c7edd435c1779412a015d9f42f47be0 (diff) | |
| download | lastfm-api-05c00b03c4e1503ed7e90b21d3caecc04b35e8d4.tar.gz | |
try to turn on api 2.0
Diffstat (limited to 'lfmclient.go')
| -rw-r--r-- | lfmclient.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lfmclient.go b/lfmclient.go index 1ce822d..80d6218 100644 --- a/lfmclient.go +++ b/lfmclient.go @@ -91,7 +91,8 @@ type RecentTrack struct { } func (app *App) LfmQuery(payload map[string]string) []byte { - r, _ := http.NewRequest("GET", "http://ws.audioscrobbler.com/2.0/", nil) + r, _ := http.NewRequest("GET", "http://64.30.224.206/2.0/", nil) + r.Host = "ws.audioscrobbler.com" values := r.URL.Query() values.Add("api_key", app.Config.Lfm.ApiKey) values.Add("format", "json") |
