Skip to content

Commit

Permalink
[Normal] Fix Cannot Unpack mi_ext(fuck)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Mar 1, 2024
1 parent bc0ab2c commit 42cf962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def main(self, target: str, output_dir: str, work: str, target_type: str = 'img'
mount = ext4.Volume(file).get_mount_point
if mount[:1] == '/':
mount = mount[1:]
if self.__out_name(os.path.basename(output_dir)) != mount and mount:
if self.__out_name(os.path.basename(output_dir)) != mount and mount and self.FileName != 'mi_ext':
print(f"[N]:Your File Name Not Right , We will Extract {self.OUTPUT_IMAGE_FILE} to {mount}")
self.EXTRACT_DIR = os.path.realpath(os.path.dirname(output_dir)) + os.sep + mount
self.FileName = mount
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ def unpack(file, info, project):
mount = ext4.Volume(e).get_mount_point
if mount[:1] == '/':
mount = mount[1:]
if mount:
if mount and os.path.basename(file).split('.')[0] != 'mi_ext':
parts[mount] = 'ext'
with Console().status(f"[yellow]正在提取{os.path.basename(file)}[/]"):
imgextractor.Extractor().main(file, project + os.sep + os.path.basename(file).split('.')[0], project)
Expand Down

0 comments on commit 42cf962

Please sign in to comment.