]> code.octet-stream.net Git - broadcaster/blobdiff - radio/config.go
Fix lints
[broadcaster] / radio / config.go
index 315265338859c2ef96b4727e1b0988f1efe58312..a91787ee4946639b2ae33de9d98bdba3cfd9c35b 100644 (file)
@@ -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"
 }