From 2212537739543471110c6c41922a05b21671ca09 Mon Sep 17 00:00:00 2001 From: anasty17 Date: Wed, 9 Oct 2024 21:24:19 +0300 Subject: [PATCH] Fix file uplaod name (important) fix #1777 Signed-off-by: anasty17 --- bot/modules/mirror_leech.py | 2 +- bot/modules/ytdlp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/mirror_leech.py b/bot/modules/mirror_leech.py index 8776a234c43..cc391f186e6 100644 --- a/bot/modules/mirror_leech.py +++ b/bot/modules/mirror_leech.py @@ -136,7 +136,7 @@ async def new_event(self): self.thumbnail_layout = args["-tl"] self.as_doc = args["-doc"] self.as_med = args["-med"] - self.folder_name = f"/{args["-m"]}" + self.folder_name = f"/{args["-m"]}" if len(args["-m"]) > 0 else "" headers = args["-h"] is_bulk = args["-b"] diff --git a/bot/modules/ytdlp.py b/bot/modules/ytdlp.py index 5afc9ab598d..fa315e400e4 100644 --- a/bot/modules/ytdlp.py +++ b/bot/modules/ytdlp.py @@ -340,7 +340,7 @@ async def new_event(self): self.thumbnail_layout = args["-tl"] self.as_doc = args["-doc"] self.as_med = args["-med"] - self.folder_name = f"/{args["-m"]}" + self.folder_name = f"/{args["-m"]}" if len(args["-m"]) > 0 else "" is_bulk = args["-b"]