refactor: guard check for search type to prevent nulled search types getting searched

This commit is contained in:
cloudwithax 2024-06-10 21:30:57 -04:00
parent 80f7b77cd3
commit b60a6aec18
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ class Player(VoiceProtocol):
"""Plays a track. If a Spotify track is passed in, it will be handled accordingly."""
# Make sure we've never searched the track before
if track.original is None:
if track._search_type and track.original is None:
# First lets try using the tracks ISRC, every track has one (hopefully)
try:
if not track.isrc: