diff --git a/internal/goscrobble/ingress_spotify.go b/internal/goscrobble/ingress_spotify.go index a94a7f54..6dbbb39a 100644 --- a/internal/goscrobble/ingress_spotify.go +++ b/internal/goscrobble/ingress_spotify.go @@ -17,7 +17,7 @@ import ( // updateSpotifyData - Pull data for all users func updateSpotifyData() { // Lets ignore if not configured - val, _ := getConfigValue("SPOTIFY_APP_SECRET") + val, _ := getConfigValue("SPOTIFY_API_SECRET") if val == "" { return } @@ -35,8 +35,8 @@ func updateSpotifyData() { } func getSpotifyAuthHandler() spotify.Authenticator { - appId, _ := getConfigValue("SPOTIFY_APP_ID") - appSecret, _ := getConfigValue("SPOTIFY_APP_SECRET") + appId, _ := getConfigValue("SPOTIFY_API_ID") + appSecret, _ := getConfigValue("SPOTIFY_API_SECRET") redirectUrl := os.Getenv("GOSCROBBLE_DOMAIN") + "/api/v1/link/spotify" if redirectUrl == "http://localhost:3000/api/v1/link/spotify" { @@ -217,7 +217,7 @@ func ParseSpotifyInput(userUUID string, data spotify.RecentlyPlayedItem, client // updateImageDataFromSpotify update artist/album images from spotify ;D func (user *User) updateImageDataFromSpotify() error { // Check that data is set before we attempt to pull - val, _ := getConfigValue("SPOTIFY_APP_SECRET") + val, _ := getConfigValue("SPOTIFY_API_SECRET") if val == "" { return nil } diff --git a/internal/goscrobble/server.go b/internal/goscrobble/server.go index e24d39d2..871b8ee8 100644 --- a/internal/goscrobble/server.go +++ b/internal/goscrobble/server.go @@ -702,7 +702,7 @@ func postSpotifyReponse(w http.ResponseWriter, r *http.Request) { // getSpotifyClientID - Returns public spotify APP ID func getSpotifyClientID(w http.ResponseWriter, r *http.Request, claims CustomClaims, v string) { - key, err := getConfigValue("SPOTIFY_APP_ID") + key, err := getConfigValue("SPOTIFY_API_ID") if err != nil { throwOkError(w, "Failed to get Spotify ID") return