mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix auto detect link
This commit is contained in:
parent
fe494f3131
commit
fd703a9aba
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ async def ytsearch(self: Client, ctx: Message, strings):
|
|||
async def ytdownv2(self: Client, ctx: Message, strings):
|
||||
if not ctx.from_user:
|
||||
return await ctx.reply_msg(strings("no_channel"))
|
||||
if len(ctx.command) == 1:
|
||||
if ctx.command and len(ctx.command) == 1:
|
||||
return await ctx.reply_msg(strings("invalid_link"))
|
||||
url = ctx.input if len(ctx.command) > 1 else ctx.text
|
||||
async with iYTDL(log_group_id=0, cache_path="cache", ffmpeg_location=f"/usr/bin/{FF_MPEG_NAME}") as ytdl:
|
||||
|
|
|
|||
Loading…
Reference in a new issue