From 2004cefceaa7308d76bb365f207d27407ecd0526 Mon Sep 17 00:00:00 2001 From: eldarborge Date: Wed, 11 Dec 2024 20:33:04 +0100 Subject: [PATCH] update readme and fix deezer --- README.md | 4 ++++ ultrasonics_api/services/deezer.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24bccc3..9ffb3e9 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ services: - DEEZER_APP_ID=abc - DEEZER_APP_SECRET=xyz + + - REDIRECT_URI=http://:8003 ```
@@ -101,4 +103,6 @@ LASTFM_API_KEY=abc DEEZER_APP_ID=abc DEEZER_APP_SECRET=xyz + +REDIRECT_URI=http://:8003 ``` \ No newline at end of file diff --git a/ultrasonics_api/services/deezer.py b/ultrasonics_api/services/deezer.py index d1eea46..b2d0cb3 100644 --- a/ultrasonics_api/services/deezer.py +++ b/ultrasonics_api/services/deezer.py @@ -72,7 +72,7 @@ def api_deezer_auth_request(): params = { "app_id": os.environ.get('DEEZER_APP_ID'), - "redirect_uri": "https://ultrasonics-api.herokuapp.com/api/deezer/auth", + "redirect_uri": f"{os.environ.get('REDIRECT_URI')}/api/deezer/auth", "state": str(uuid4()), "perms": ",".join([ "basic_access",