diff options
| author | Amit Katz <[email protected]> | 2018-10-30 13:58:17 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:39:06 -0500 |
| commit | c3f99682ded13910fbc447efbba0d9e4e3982b6c (patch) | |
| tree | 257d41ecc61f45ca3f450b935ee97e8a1d48a8a6 /discord/activity.py | |
| parent | Webhooks: add support for multi-file upload (diff) | |
| download | discord.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.py | 2 |
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): |