Skip to content

Commit

Permalink
Change compression ratio
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Jan 1, 2025
1 parent 628e96d commit a8101c1
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -669,7 +669,7 @@ async def proceed_extract(self, dl_path, gid):
if (
not self.seed
and self.subproc is not None
and self.subproc.returncode == 0
and code == 0
):
for file_ in files:
if is_archive_split(file_) or is_archive(file_):
Expand Down Expand Up @@ -761,7 +761,7 @@ async def proceed_compress(self, dl_path, gid, o_files, ft_delete):
"7z",
f"-v{split_size}b",
"a",
"-mx=9",
"-mx=0",
f"-p{pswd}",
up_path,
dl_path,
Expand Down
1 change: 0 additions & 1 deletion bot/helper/ext_utils/media_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ async def split_file(
async with listener.subprocess_lock:
if listener.is_cancelled:
return False
code = listener.subproc.returncode
if code == -9:
listener.is_cancelled = True
return False
Expand Down

0 comments on commit a8101c1

Please sign in to comment.