fix: minor [p]download fix to allow for subfolders with spaces

This commit is contained in:
Seaswimmer 2023-08-09 02:38:37 -04:00
parent ec1d91560e
commit 57493c3abe
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -67,7 +67,7 @@ class MusicDownloader(commands.Cog):
await ctx.send("The path you've provided doesn't exist!") await ctx.send("The path you've provided doesn't exist!")
@commands.command(aliases=["dl"]) @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. """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. 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.