mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
added debug message
This commit is contained in:
parent
60ef54d8e4
commit
8b90fb8e34
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user