Fix track existence check in Node.get_tracks
Corrects a variable name in the track existence check from 'track' to 'tracks', ensuring the method properly returns an empty list when no tracks are found.
This commit is contained in:
@@ -399,7 +399,7 @@ class Node:
|
||||
return []
|
||||
|
||||
tracks = await self.get_tracks(query=query, requester=self.bot.user)
|
||||
if not track:
|
||||
if not tracks:
|
||||
return []
|
||||
|
||||
if isinstance(tracks, Playlist):
|
||||
|
||||
Reference in New Issue
Block a user