Skip to content

Commit

Permalink
Update to ubuntu 24.10
Browse files Browse the repository at this point in the history
- Use zip instead of 7z for compressing
  • Loading branch information
anasty17 committed Dec 15, 2024
1 parent 0e4b428 commit 6bb56e2
Show file tree
Hide file tree
Showing 3 changed files with 4 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 @@ -717,10 +717,10 @@ async def proceed_compress(self, dl_path, gid, o_files, ft_delete):
pswd = self.compress if isinstance(self.compress, str) else ""
if self.seed and not self.new_dir:
self.new_dir = f"{self.dir}10000"
up_path = f"{self.new_dir}/{self.name}.7z"
up_path = f"{self.new_dir}/{self.name}.zip"
delete = False
else:
up_path = f"{dl_path}.7z"
up_path = f"{dl_path}.zip"
delete = True
async with task_dict_lock:
task_dict[self.mid] = SevenZStatus(self, gid, "Zip")
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 @@ -31,7 +31,7 @@ async def stop_duplicate_check(listener):
LOGGER.info(f"Checking File/Folder if already in Drive: {name}")

if listener.compress:
name = f"{name}.7z"
name = f"{name}.zip"
elif listener.extract:
try:
name = get_base_name(name)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ httpx
lxml
motor
natsort
par2cmdline-turbo
pillow
psutil
pymongo
Expand Down

0 comments on commit 6bb56e2

Please sign in to comment.