diff options
| author | Fuwn <[email protected]> | 2023-01-02 20:54:27 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 20:54:27 -0800 |
| commit | a902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6 (patch) | |
| tree | 5db82d553e57146114f88e0c7649f5dcdb36e192 | |
| parent | fix(spotify.py): headers (diff) | |
| download | rubys_song_skipper-a902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6.tar.xz rubys_song_skipper-a902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6.zip | |
fix(spotify.py): headers
| -rw-r--r-- | rubys_song_skipper/spotify.py | 4 |
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", |