From 05c00b03c4e1503ed7e90b21d3caecc04b35e8d4 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Tue, 20 Jun 2017 22:31:36 -0400 Subject: try to turn on api 2.0 --- lfmclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lfmclient.go') 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") -- cgit v1.2.3-70-g09d2