X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/c94fef11f43279165f39680fa0b0922c86702687..d49d716a33dc5eda5b0cb634b762405f7cf509fe:/radio/config.go?ds=sidebyside diff --git a/radio/config.go b/radio/config.go index 3152653..a91787e 100644 --- a/radio/config.go +++ b/radio/config.go @@ -27,7 +27,7 @@ func NewRadioConfig() RadioConfig { ServerURL: "", Token: "", CachePath: "", - TimeZone: "Australia/Hobart", + TimeZone: "Local", } } @@ -48,7 +48,7 @@ func (c *RadioConfig) Validate() error { return errors.New("ServerURL must be provided in the configuration") } if c.Token == "" { - return errors.New("Token must be provided in the configuration") + return errors.New("token must be provided in the configuration") } return nil } @@ -66,5 +66,5 @@ func (c *RadioConfig) ApplyDefaults() { func (c *RadioConfig) WebsocketURL() string { addr := strings.Replace(c.ServerURL, "https://", "wss://", -1) addr = strings.Replace(addr, "http://", "ws://", -1) - return addr + "/radiosync" + return addr + "/radio-ws" }