diff --git a/scripts/extracters/chuni.py b/scripts/extracters/chuni.py index caba732..cce0c19 100644 --- a/scripts/extracters/chuni.py +++ b/scripts/extracters/chuni.py @@ -43,6 +43,7 @@ class Chuni(Extracter): texture = self.data_dir / 'surfboard' / 'texture' yield self.process_image, texture / 'CHU_UI_Common_Avatar_body_00.dds', self.out_dir / 'avatar' / 'CHU_UI_Common_Avatar_body_00.dds', 'images' + yield self.process_image, texture / 'CHU_UI_Common_Avatar_face_00.dds', self.out_dir / 'avatar' / 'CHU_UI_Common_Avatar_face_00.dds', 'images' yield self.process_image, texture / 'CHU_UI_title_rank_00_v10.dds', self.out_dir / 'trophy' / 'CHU_UI_title_rank_00_v10.dds', 'images' def extract_jacket(self): diff --git a/scripts/extracters/extracter.py b/scripts/extracters/extracter.py index 7dac616..564e751 100644 --- a/scripts/extracters/extracter.py +++ b/scripts/extracters/extracter.py @@ -69,6 +69,9 @@ class Extracter: def ffmpeg(self, input_args, media_type, output_name): buffer_input = None input_args = list(input_args) + out_path = Path(output_name).with_suffix(self.config[media_type]['extension']) + if self.no_overwrite and out_path.exists(): + return for i, arg in enumerate(input_args): if type(arg) == bytes: @@ -87,7 +90,7 @@ class Extracter: 'error', *input_args, *self.config[media_type].get('ffmpeg_args', []), - Path(output_name).with_suffix(self.config[media_type]['extension']) + out_path ] if buffer_input: