mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
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"]`
This commit is contained in:
parent
a105f8b8cc
commit
c3f99682de
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user