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)