From 160d66d05c0d3ec46133edff5bab70a73e768c24 Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Sat, 19 Jan 2019 19:04:15 -0800 Subject: [PATCH] b64encode with bytes --- beetsplug/spotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index caaa06a55..88a584f86 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -68,8 +68,8 @@ class SpotifyPlugin(BeetsPlugin): 'Authorization': 'Basic {}'.format( base64.b64encode( '{}:{}'.format( - self.config['client_id'].as_str(), - self.config['client_secret'].as_str(), + bytes(self.config['client_id'].as_str()), + bytes(self.config['client_secret'].as_str()), ) ) )