mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-02 16:49:04 +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:
1 parent
a105f8b8cc
commit
c3f99682de
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user