From 8bdd927d20eb18652fb4d2f36be70e646bb3c524 Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Sat, 19 Jan 2019 19:17:34 -0800 Subject: [PATCH] try b64 encode/decode --- beetsplug/spotify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 88a584f86..e51d32643 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -68,10 +68,10 @@ class SpotifyPlugin(BeetsPlugin): 'Authorization': 'Basic {}'.format( base64.b64encode( '{}:{}'.format( - bytes(self.config['client_id'].as_str()), - bytes(self.config['client_secret'].as_str()), + self.config['client_id'].as_str().encode(), + self.config['client_secret'].as_str().encode(), ) - ) + ).decode() ) } response = requests.post(