From 049faa0c963e16b91e704745edfe5b77d634ad5c Mon Sep 17 00:00:00 2001 From: anasty17 Date: Thu, 9 May 2024 15:35:03 +0300 Subject: [PATCH] Change compression from zip to 7z format Signed-off-by: anasty17 --- bot/helper/common.py | 4 ++-- bot/helper/ext_utils/task_manager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/helper/common.py b/bot/helper/common.py index 70e6b0d60ab..e29aca1c2c5 100644 --- a/bot/helper/common.py +++ b/bot/helper/common.py @@ -575,10 +575,10 @@ async def proceedCompress(self, dl_path, gid, o_files, ft_delete): pswd = self.compress if isinstance(self.compress, str) else "" if self.seed and not self.newDir: self.newDir = f"{self.dir}10000" - up_path = f"{self.newDir}/{self.name}.zip" + up_path = f"{self.newDir}/{self.name}.7z" delete = False else: - up_path = f"{dl_path}.zip" + up_path = f"{dl_path}.7z" delete = True async with task_dict_lock: task_dict[self.mid] = ZipStatus(self, gid) diff --git a/bot/helper/ext_utils/task_manager.py b/bot/helper/ext_utils/task_manager.py index f65e8a99639..ef8c3a8da36 100644 --- a/bot/helper/ext_utils/task_manager.py +++ b/bot/helper/ext_utils/task_manager.py @@ -34,7 +34,7 @@ async def stop_duplicate_check(listener): LOGGER.info(f"Checking File/Folder if already in Drive: {name}") if listener.compress: - name = f"{name}.zip" + name = f"{name}.7z" elif listener.extract: try: name = get_base_name(name)