diff --git a/config/config.go b/config/config.go index ada8d45..fb0df69 100644 --- a/config/config.go +++ b/config/config.go @@ -48,11 +48,12 @@ type ReadwiseConfig struct { } type SpotifyConfig struct { - ClientId string `env:"SPOTIFY_CLIENT_ID"` - ClientSecret string `env:"SPOTIFY_CLIENT_SECRET"` - DeviceId string `env:"SPOTIFY_DEVICE_ID"` - RedirectUri string `env:"SPOTIFY_REDIRECT_URI"` - Username string `env:"SPOTIFY_USERNAME"` + ConnectPlayerName string `env:"SPOTIFY_CONNECT_PLAYER_NAME"` + ClientId string `env:"SPOTIFY_CLIENT_ID"` + ClientSecret string `env:"SPOTIFY_CLIENT_SECRET"` + DeviceId string `env:"SPOTIFY_DEVICE_ID"` + RedirectUri string `env:"SPOTIFY_REDIRECT_URI"` + Username string `env:"SPOTIFY_USERNAME"` } type SteamConfig struct { diff --git a/spotify/spotify.go b/spotify/spotify.go index cefa73d..88b20ce 100644 --- a/spotify/spotify.go +++ b/spotify/spotify.go @@ -412,7 +412,7 @@ func (c *Client) handleMessage(msg dealer.Message, ps *playback.PlaybackSystem) PutStateReason: connectpb.PutStateReason_NEW_DEVICE, Device: &connectpb.Device{ DeviceInfo: &connectpb.DeviceInfo{ - Name: "Gunslinger", + Name: c.cfg.Spotify.ConnectPlayerName, Volume: 0, CanPlay: false, DeviceType: devicespb.DeviceType_SMARTWATCH,