This commit is contained in:
yasirarism 2023-06-16 14:09:04 +00:00 committed by GitHub
parent fd703a9aba
commit d9557b828f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ async def server_stats(self: Client, ctx: Message) -> "Message":
(progress - 7, coordinate - 25, progress + 15, coordinate), fill="#FFFFFF" (progress - 7, coordinate - 25, progress + 15, coordinate), fill="#FFFFFF"
) )
total, used, free = disk_usage_percent(".") total, used, free = disk_usage(".")
process = Process(os.getpid()) process = Process(os.getpid())
botuptime = get_readable_time(time() - BotStartTime) botuptime = get_readable_time(time() - BotStartTime)

View file

@ -69,7 +69,7 @@ async def ytdownv2(self: Client, ctx: Message, strings):
return await ctx.reply_msg(strings("no_channel")) return await ctx.reply_msg(strings("no_channel"))
if ctx.command and len(ctx.command) == 1: if ctx.command and len(ctx.command) == 1:
return await ctx.reply_msg(strings("invalid_link")) return await ctx.reply_msg(strings("invalid_link"))
url = ctx.input if len(ctx.command) > 1 else ctx.text url = ctx.input if ctx.command and 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: async with iYTDL(log_group_id=0, cache_path="cache", ffmpeg_location=f"/usr/bin/{FF_MPEG_NAME}") as ytdl:
try: try:
x = await ytdl.parse(url, extract=True) x = await ytdl.parse(url, extract=True)