b64encode with bytes
@@ -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()),
)
)
)
