From 6967b6467fac91ca5f43052a4d68b7776141c4e8 Mon Sep 17 00:00:00 2001 From: ilkergzlkkr Date: Thu, 21 Jul 2022 11:49:37 +0300 Subject: [PATCH] fix: never search for track that searched before --- pomice/player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pomice/player.py b/pomice/player.py index 5cf38b7..ff9d9ab 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -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: