From 094f2be181b9b39d9ae35836e625f730482aec17 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Mon, 10 Jun 2024 21:54:21 -0400 Subject: [PATCH] refactor: set original track if search type is not defined in Player's play_track method --- pomice/player.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pomice/player.py b/pomice/player.py index c841340..da8d24d 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -504,6 +504,9 @@ class Player(VoiceProtocol): ) -> Track: """Plays a track. If a Spotify track is passed in, it will be handled accordingly.""" + if not track._search_type: + track.original = track + # Make sure we've never searched the track before if track._search_type and track.original is None: # First lets try using the tracks ISRC, every track has one (hopefully)