From d53803370a93c8ea6249f7e82f1914885782883e Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 4 Sep 2024 19:32:09 -0700 Subject: [PATCH] fixed quote being appended to url --- cogs/ytdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/ytdl.py b/cogs/ytdl.py index d3985c6..a3855a6 100644 --- a/cogs/ytdl.py +++ b/cogs/ytdl.py @@ -13,7 +13,7 @@ class YoutubeDL(BotBaseCog): @commands.command() async def youtubedl(self, ctx): try: - url = f"{ctx.message.content.split(" ", 1)[1]}" + url = 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])