refactor: guard check for search type to prevent nulled search types getting searched
This commit is contained in:
parent
80f7b77cd3
commit
b60a6aec18
|
|
@ -505,7 +505,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."""
|
||||||
|
|
||||||
# Make sure we've never searched the track before
|
# 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)
|
# First lets try using the tracks ISRC, every track has one (hopefully)
|
||||||
try:
|
try:
|
||||||
if not track.isrc:
|
if not track.isrc:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue