From 8ef0c4e54da4e0e4ce2c030f713b4f53f4e38c2d Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Fri, 3 Nov 2023 09:34:02 +0700 Subject: [PATCH] debuug --- misskaty/plugins/ytdl_plugins.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misskaty/plugins/ytdl_plugins.py b/misskaty/plugins/ytdl_plugins.py index b7c0847e..bfba1aa7 100644 --- a/misskaty/plugins/ytdl_plugins.py +++ b/misskaty/plugins/ytdl_plugins.py @@ -94,9 +94,7 @@ async def ytsearch(_, ctx: Message, strings): async def ytdownv2(self, ctx: Message, strings): if not ctx.from_user: return await ctx.reply_msg(strings("no_channel")) - url = ctx.command[1] if ctx.command and len(ctx.command) > 1 else ctx.text - self.log.info(url) - self.log.info(not isValidURL(url)) + url = ctx.command[1] if ctx.command and len(ctx.command) > 1 else ctx.text or ctx.caption if not isValidURL(url): return await ctx.reply_msg(strings("invalid_link")) async with iYTDL(log_group_id=0, cache_path="cache", silent=True) as ytdl: