summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rubys_song_skipper/spotify.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py
index 64ed8b5..923f496 100644
--- a/rubys_song_skipper/spotify.py
+++ b/rubys_song_skipper/spotify.py
@@ -17,7 +17,9 @@ def bearer(code):
# },
headers={
"Authorization": str(
- base64.urlsafe_b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}")
+ base64.urlsafe_b64encode(
+ f"{CLIENT_ID}:{CLIENT_SECRET}".encode()
+ ).decode()
),
"Accept": "application/json",
"Content-Type": "application/x-www-form-urlencoded",