fixed url parsing
This commit is contained in:
parent
5d8edfab0a
commit
b45db6c54b
1 changed files with 2 additions and 2 deletions
|
|
@ -14,9 +14,9 @@ class YoutubeDL(BotBaseCog):
|
|||
@commands.command()
|
||||
async def youtubedl(self, ctx):
|
||||
try:
|
||||
url = ctx.message.content.split(" ", 1)[1]
|
||||
url = ctx.message.content.split(" ")[1]
|
||||
url = '"' + url + '"'
|
||||
video_or_audio = ctx.message.content.split(" ", 2)[2]
|
||||
video_or_audio = ctx.message.content.split(" ")[2]
|
||||
process = subprocess.Popen(["python3", "data/ytdl/youtubedl.py", url, video_or_audio])
|
||||
await ctx.send(f"Downloading {video_or_audio} from {url}...", suppress_embeds=True)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue