From 8b90fb8e34d39d4598338881469cca876aa65699 Mon Sep 17 00:00:00 2001 From: Carsten Burgard Date: Fri, 15 Apr 2022 16:06:22 +0200 Subject: [PATCH] added debug message --- PlexBot/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PlexBot/bot.py b/PlexBot/bot.py index db34de0..19d7714 100644 --- a/PlexBot/bot.py +++ b/PlexBot/bot.py @@ -331,6 +331,7 @@ class Plex(commands.Cog): bot_log.debug("failed to pop queue") if not self.current_track and self.loop_queue: + bot_log.debug("swapping loop queue and play queue") try: self.current_track = await self.loop_queue.get() except CancelledError: @@ -392,7 +393,8 @@ class Plex(commands.Cog): Raises: None """ - if self.loop_queue: + if self.current_track and self.loop_queue: + bot_log.debug("pushing into loop queue: "+str(self.current_track)) self.bot.loop.call_soon_threadsafe(self.loop_queue.put,self.current_track) self.current_track = None self.bot.loop.call_soon_threadsafe(self.play_next_event.set)