aboutsummaryrefslogtreecommitdiff
path: root/discord/activity.py
diff options
context:
space:
mode:
authorAmit Katz <[email protected]>2018-10-30 13:58:17 +0200
committerRapptz <[email protected]>2018-11-24 22:39:06 -0500
commitc3f99682ded13910fbc447efbba0d9e4e3982b6c (patch)
tree257d41ecc61f45ca3f450b935ee97e8a1d48a8a6 /discord/activity.py
parentWebhooks: add support for multi-file upload (diff)
downloaddiscord.py-c3f99682ded13910fbc447efbba0d9e4e3982b6c.tar.xz
discord.py-c3f99682ded13910fbc447efbba0d9e4e3982b6c.zip
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"]`
Diffstat (limited to 'discord/activity.py')
-rw-r--r--discord/activity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/activity.py b/discord/activity.py
index 7ecb6e88..9463c469 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):