Skip to content

Commit

Permalink
[Audio] Fix for playlist queue when not playing (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
aikaterna authored and tekulvw committed Apr 22, 2019
1 parent bb8ce43 commit 005123a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redbot/cogs/audio/audio.py
Expand Up @@ -1720,6 +1720,8 @@ async def _playlist_queue(self, ctx, playlist_name=None):
if not self._player_check(ctx):
return await self._embed_msg(ctx, _("Nothing playing."))
player = lavalink.get_player(ctx.guild.id)
if not player.current:
return await self._embed_msg(ctx, _("There's nothing in the queue."))
tracklist = []
np_song = self._track_creator(player, "np")
tracklist.append(np_song)
Expand Down

0 comments on commit 005123a

Please sign in to comment.