Fix retry

This commit is contained in:
insert 2024-11-30 14:17:29 -05:00
parent b765f8d1eb
commit c21175622a
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -129,7 +129,7 @@ def download_video(index):
except Exception: except Exception:
print("handling youtube exception") print("handling youtube exception")
global failures global failures
if retries % 2 == 0: if retries % 2 == 1:
queue.pop(index) queue.pop(index)
if not (os.getenv("PERMANENT_MAX_QUEUE","FALSE") == "TRUE"): if not (os.getenv("PERMANENT_MAX_QUEUE","FALSE") == "TRUE"):
user_queue.pop(index) user_queue.pop(index)
@ -367,7 +367,7 @@ async def toggleplayback(inter: disnake.AppCmdInter):
@bot.slash_command( @bot.slash_command(
name="skip", name="skip",
description="skips the current video", description="skips the current video, do not run this command multiple times",
default_member_permissions=disnake.Permissions(8192), default_member_permissions=disnake.Permissions(8192),
) )
async def skip(inter: disnake.AppCmdInter): async def skip(inter: disnake.AppCmdInter):