Removed redudant search term for searching up partial tracks

This commit is contained in:
cloudwithax 2021-10-03 17:04:44 -04:00
parent dbf49e6c21
commit 423060f675
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,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} audio" f"ytmsearch:{track.title} {track.author}"
))[0] ))[0]
await self.node.send( await self.node.send(
op="play", op="play",