diff --git a/src/sticker_convert/converter.py b/src/sticker_convert/converter.py index 64755b2..504d857 100755 --- a/src/sticker_convert/converter.py +++ b/src/sticker_convert/converter.py @@ -433,7 +433,9 @@ def _frames_import_pillow(self) -> None: # Pillow is not reliable for getting webp frame durations durations: Optional[List[int]] if im.format == "WEBP": - _, _, _, durations = CodecInfo._get_file_fps_frames_duration_webp(self.in_f) + _, _, _, durations = CodecInfo._get_file_fps_frames_duration_webp( + self.in_f + ) else: durations = None @@ -454,7 +456,9 @@ def _frames_import_pillow(self) -> None: im.seek(frame) if durations is None: - next_frame_start_duration += cast(int, im.info.get("duration", 1000)) + next_frame_start_duration += cast( + int, im.info.get("duration", 1000) + ) else: next_frame_start_duration += durations[frame] else: diff --git a/src/sticker_convert/utils/media/codec_info.py b/src/sticker_convert/utils/media/codec_info.py index 9e68881..e50f844 100755 --- a/src/sticker_convert/utils/media/codec_info.py +++ b/src/sticker_convert/utils/media/codec_info.py @@ -94,7 +94,9 @@ def get_file_fps_frames_duration( else: duration = 0 elif file_ext == ".webp": - fps, frames, duration, _ = CodecInfo._get_file_fps_frames_duration_webp(file) + fps, frames, duration, _ = CodecInfo._get_file_fps_frames_duration_webp( + file + ) elif file_ext in (".gif", ".apng", ".png"): fps, frames, duration = CodecInfo._get_file_fps_frames_duration_pillow(file) else: