fixed quote being appended to url

This commit is contained in:
phixxy 2024-09-04 19:32:09 -07:00
parent 8b6a59e820
commit d53803370a

View file

@ -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])