From fa65d1f9bc9a528efdc7f7d454aca5004e7a3559 Mon Sep 17 00:00:00 2001 From: Anas Tayyar Date: Sun, 21 Jan 2024 18:38:06 +0200 Subject: [PATCH] Fix media convert --- bot/helper/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/helper/common.py b/bot/helper/common.py index a5ea8e279ca..7a6f300c7ec 100644 --- a/bot/helper/common.py +++ b/bot/helper/common.py @@ -648,8 +648,9 @@ async def convertMedia(self, up_dir, size, gid): else: vstatus = "" fvext.extend(f".{ext}" for ext in vdata[2:]) + else: + vstatus = "" else: - vdata = "" vext = "" vstatus = "" @@ -665,8 +666,9 @@ async def convertMedia(self, up_dir, size, gid): else: astatus = "" faext.extend(f".{ext}" for ext in adata[2:]) + else: + astatus = "" else: - adata = "" aext = "" astatus = ""