From c3f99682ded13910fbc447efbba0d9e4e3982b6c Mon Sep 17 00:00:00 2001 From: Amit Katz Date: Tue, 30 Oct 2018 13:58:17 +0200 Subject: [PATCH] Trim whitespace in artist names in Spotify.artists Basically Discord retrieves the data like `artist1; artist2; artist3` and when you split only by `;` the results will be: `[artist1, " artist2", " artist3"]` --- discord/activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/activity.py b/discord/activity.py index 7ecb6e88d..9463c4693 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -513,7 +513,7 @@ class Spotify: @property def artists(self): """List[:class:`str`]: The artists of the song being played.""" - return self._state.split(';') + return self._state.split('; ') @property def artist(self):