fix: never search for track that searched before

This commit is contained in:
ilkergzlkkr 2022-07-21 11:49:37 +03:00
parent 6a0765d712
commit 6967b6467f
1 changed files with 2 additions and 1 deletions

View File

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