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
|
@property
|
||||||
def artists(self):
|
def artists(self):
|
||||||
"""List[:class:`str`]: The artists of the song being played."""
|
"""List[:class:`str`]: The artists of the song being played."""
|
||||||
return self._state.split(';')
|
return self._state.split('; ')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def artist(self):
|
def artist(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user