change spotify track youtube query to "artist - title"

This commit is contained in:
vveeps 2021-10-07 17:46:09 +03:00
parent ec9e6929b4
commit a85dc41e68
1 changed files with 1 additions and 1 deletions

View File

@ -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",