Skip to content

Commit

Permalink
fix: play_url_next when queue track is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch committed Nov 18, 2024
1 parent 39d8fe2 commit 5ca59b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyramid/connector/discord/guild_cmd_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ async def _execute_play_multiple(
ms.add_message(content=f"ERROR > **{track.get_full_name()}** can't be downloaded.")
cant_dl += 1
continue
if at_end is True and not (
tl.add_track(track_downloaded) or tl.add_track_after(track_downloaded)
if (at_end and not tl.add_track(track_downloaded)) or (
not at_end and not tl.add_track_after(track_downloaded)
):
ms.add_message(
content=f"ERROR > **{track.get_full_name()}** can't be add to the queue."
Expand Down

0 comments on commit 5ca59b8

Please sign in to comment.