mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-19 21:17:31 -07:00
parent
b0709e68b3
commit
7ad764ceee
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue