From 57493c3abe9841405741907f414fff54de8661d3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 9 Aug 2023 02:38:37 -0400 Subject: [PATCH] fix: minor [p]download fix to allow for subfolders with spaces --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index ed218b2..efbbb0a 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -67,7 +67,7 @@ class MusicDownloader(commands.Cog): await ctx.send("The path you've provided doesn't exist!") @commands.command(aliases=["dl"]) - async def download(self, ctx: commands.Context, url: str, delete: bool = False, subfolder: str = None): + async def download(self, ctx: commands.Context, url: str, delete: bool = False, *, subfolder: str = None): """This command downloads a YouTube Video as an `m4a` and uploads the file to discord. If you're considered a bot owner, you will be able to save downloaded files to the data path set in the `[p]change_data_path` command.