From 8b6a59e8208d905327ac47e93cf2ee343c3c5a59 Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 4 Sep 2024 19:31:11 -0700 Subject: [PATCH] fixed quote being appended to url --- cogs/ytdl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/ytdl.py b/cogs/ytdl.py index 6322c2d..d3985c6 100644 --- a/cogs/ytdl.py +++ b/cogs/ytdl.py @@ -13,7 +13,8 @@ class YoutubeDL(BotBaseCog): @commands.command() async def youtubedl(self, ctx): try: - url = f"\"{ctx.message.content.split(" ", 1)[1]}\"" + url = f"{ctx.message.content.split(" ", 1)[1]}" + url = '"' + url + '"' video_or_audio = ctx.message.content.split(" ", 2)[2] process = subprocess.Popen(["python3", "data/ytdl/youtubedl.py", url, video_or_audio]) process.wait()