Skip to content

Commit

Permalink
Change compression from zip to 7z format
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed May 9, 2024
1 parent 76abd9d commit 049faa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/ext_utils/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 049faa0

Please sign in to comment.