mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
🐛 Fix broken await for queuing
This commit is contained in:
parent
ed1ec214ee
commit
ed74254d83
@ -72,6 +72,10 @@ class Plex(commands.Cog):
|
||||
track_url = self.current_track.getStreamURL()
|
||||
|
||||
audio_stream = FFmpegPCMAudio(track_url)
|
||||
|
||||
while self.vc.is_playing():
|
||||
asyncio.sleep(10)
|
||||
|
||||
self.vc.play(audio_stream, after=self._toggle_next)
|
||||
|
||||
logger.debug(f"Playing {self.current_track.title}")
|
||||
@ -159,7 +163,7 @@ class Plex(commands.Cog):
|
||||
self.vc.stop()
|
||||
await self.vc.disconnect()
|
||||
self.vc = None
|
||||
await ctx.send(":stop: Stopped")
|
||||
await ctx.send(":stop_button: Stopped")
|
||||
|
||||
@command()
|
||||
async def pause(self, ctx):
|
||||
|
Loading…
Reference in New Issue
Block a user