This commit is contained in:
Eduard Prigoana 2025-01-18 21:14:49 +02:00
parent 97c384c906
commit 61dcd99db2
6 changed files with 7 additions and 7 deletions

1
.cache Normal file
View file

@ -0,0 +1 @@
{"access_token": "BQBCjzsh0Tm5K8GnkwtrmvavDRuUoGAOCl8yfKyjt6oeatCjmLY8fqMk5Wx66rZHNqf-YQiMBofXHershMVVHxea-Exh2mwMwp9z5kFf56LsWqwIcsUZbOxzEJjm-JjK37fKfR9KpM5NLeZ9bcGuWKnfpKjWj1qJfQmhei8eKs9n-QjG-wt1dTLB1ujRk2ROwah4XkxMkewXNaSVhW_y5aDL3lk", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "AQAKTdSkH3SoqppmeSMvp52V_25lCRFgZPTv4wTXcJLqV7uU1-SJWK6mpW0n2NivNSoWNQxRd3Qteuxp3GXW6_BSa4bh8fYcKH63G1TWEjRyvw2sE_I5PqxCLUY_Pvcf0k0", "scope": "user-modify-playback-state user-read-playback-state", "expires_at": 1737231157}

4
.env Normal file
View file

@ -0,0 +1,4 @@
# Required Spotify API credentials
CLIENT_ID=f7f2841e0c26492681499a53b4eca29f
CLIENT_SECRET=8e1a973438214682939b175bb9f1ed1d
LASTPLAYED_URL=https://lastplayed.prigoana.com/Labirint84/

4
.gitignore vendored
View file

@ -1,4 +0,0 @@
.env
.cache
__pycache__/app.cpython-312.pyc

Binary file not shown.

4
app.py
View file

@ -13,7 +13,7 @@ app = Flask(__name__)
# Spotify API credentials from environment variables
CLIENT_ID = os.getenv("CLIENT_ID")
CLIENT_SECRET = os.getenv("CLIENT_SECRET")
REDIRECT_URI = "https://music.prigoana.com/callback"
REDIRECT_URI = "http://localhost:80/callback"
SCOPE = "user-modify-playback-state user-read-playback-state"
# Spotipy client
@ -70,4 +70,4 @@ def queue_table():
# Run the Flask app
if __name__ == "__main__":
app.run(port=10000, host="0.0.0.0", debug=True)
app.run(port=80, host="0.0.0.0", debug=True)

View file

@ -62,7 +62,6 @@
<p>Now Playing:</p>
<div class="now-playing" id="nowPlaying">
<div id="nowPlayingInfo">
Loading now playing...
</div>
</div>