aboutsummaryrefslogtreecommitdiffstats
path: root/lfmclient.go
diff options
context:
space:
mode:
Diffstat (limited to 'lfmclient.go')
-rw-r--r--lfmclient.go3
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")