diff --git a/.cache b/.cache new file mode 100644 index 0000000..9fe3df5 --- /dev/null +++ b/.cache @@ -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} \ No newline at end of file diff --git a/.env b/.env new file mode 100644 index 0000000..927f569 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +# Required Spotify API credentials +CLIENT_ID=f7f2841e0c26492681499a53b4eca29f +CLIENT_SECRET=8e1a973438214682939b175bb9f1ed1d +LASTPLAYED_URL=https://lastplayed.prigoana.com/Labirint84/ \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 29c958c..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ - -.env -.cache -__pycache__/app.cpython-312.pyc diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc new file mode 100644 index 0000000..318b4ba Binary files /dev/null and b/__pycache__/app.cpython-312.pyc differ diff --git a/app.py b/app.py index 138b2af..ce06bc6 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/templates/index.html b/templates/index.html index 9fcb5bf..0822214 100644 --- a/templates/index.html +++ b/templates/index.html @@ -62,7 +62,6 @@

Now Playing:

- Loading now playing...