riverscuomo / spotkin_server

A python package that updates one or more of your Spotify playlists every day with a random selection of songs from any playlists you specify. Here's mine: https://open.spotify.com/playlist/1HaQfSGjNzIsiC5qOsCUcW?si=ddc16d3e9524410c . This repo also contains the backend server for Spotkin webapp.
GNU General Public License v3.0
83 stars 8 forks source link

Bug: Environment variable name misspelling/mismatch #25

Closed R055A closed 3 months ago

R055A commented 3 months ago

There is a misspelling of environment variable names in the source code, or mismatch with the names in the README.md instructions.

The variable names in the README.md are as follows:

SPOTIFY_CLIENT_ID=xxx
SPOTIFY_CLIENT_SECRET=xxx
SPOTIFY_REDIRECT_URI=http://localhost:8080

FLASK_APP=server.py
FLASK_ENV=development

The misspelled/mismatch variable names are:

At line 20 in spotkin.py:

client_secret = os.getenv('SPOTIPY_CLIENT_SECRET')`

At lines 23 and 24 in scripts/api.py

CLIENT_SECRET = os.getenv("SPOTIPY_CLIENT_SECRET")
SPOTIPY_REDIRECT_URL = os.getenv("SPOTIPY_REDIRECT_URL")