diff --git a/docs/docs/segment-ytm.md b/docs/docs/segment-ytm.md index 75ff4183..a79e41af 100644 --- a/docs/docs/segment-ytm.md +++ b/docs/docs/segment-ytm.md @@ -38,4 +38,4 @@ Remote Control password. - paused_icon: `string` - text/icon to show when paused - defaults to `\uF8E3 ` - stopped_icon: `string` - text/icon to show when paused - defaults to `\uF04D ` - track_separator: `string` - text/icon to put between the artist and song name - defaults to ` - ` -- api_url: `string` - the YTMDA Remote Control API URL- defaults to `http://localhost:9863` +- api_url: `string` - the YTMDA Remote Control API URL- defaults to `http://127.0.0.1:9863` diff --git a/src/segment_ytm.go b/src/segment_ytm.go index 365362ef..6912ec94 100644 --- a/src/segment_ytm.go +++ b/src/segment_ytm.go @@ -84,7 +84,7 @@ type track struct { func (y *ytm) setStatus() error { // https://github.com/ytmdesktop/ytmdesktop/wiki/Remote-Control-API - url := y.props.getString(APIURL, "http://localhost:9863") + url := y.props.getString(APIURL, "http://127.0.0.1:9863") body, err := y.env.doGet(url + "/query") if err != nil { return err diff --git a/src/segment_ytm_test.go b/src/segment_ytm_test.go index 56a3bd2c..c0f98bac 100644 --- a/src/segment_ytm_test.go +++ b/src/segment_ytm_test.go @@ -38,7 +38,7 @@ func TestYTMStringStoppedSong(t *testing.T) { } func bootstrapYTMDATest(json string, err error) *ytm { - url := "http://localhost:1337" + url := "http://127.0.0.1:9863" env := new(MockedEnvironment) env.On("doGet", url+"/query").Return([]byte(json), err) props := &properties{ diff --git a/themes/schema.json b/themes/schema.json index de4357e4..9862ee1e 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -1425,7 +1425,7 @@ "type": "string", "title": "API URL", "description": "The YTMDA Remote Control API URL", - "default": "http://localhost:9863" + "default": "http://127.0.0.1:9863" } } }