change spotify track youtube query to "artist - title"
This commit is contained in:
parent
ec9e6929b4
commit
a85dc41e68
|
|
@ -149,7 +149,7 @@ class Player(VoiceProtocol):
|
||||||
"""Plays a track. If a Spotify track is passed in, it will be handled accordingly."""
|
"""Plays a track. If a Spotify track is passed in, it will be handled accordingly."""
|
||||||
if track.spotify:
|
if track.spotify:
|
||||||
spotify_track: objects.Track = (await self.node.get_tracks(
|
spotify_track: objects.Track = (await self.node.get_tracks(
|
||||||
f"ytmsearch:{track.title} {track.author}"
|
f"ytmsearch:{track.author} - {track.title}"
|
||||||
))[0]
|
))[0]
|
||||||
await self._node.send(
|
await self._node.send(
|
||||||
op="play",
|
op="play",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue