From 0b17eaeb6510fbfde737775cc63a540d72b6d3ea Mon Sep 17 00:00:00 2001 From: OleSTEEP Date: Thu, 1 Jun 2023 18:40:24 +0300 Subject: [PATCH] FFMpeg-Compressor: Fix typos --- FFMpeg-Compressor/modules/compressor.py | 2 +- FFMpeg-Compressor/modules/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FFMpeg-Compressor/modules/compressor.py b/FFMpeg-Compressor/modules/compressor.py index 18df541..0e83fee 100644 --- a/FFMpeg-Compressor/modules/compressor.py +++ b/FFMpeg-Compressor/modules/compressor.py @@ -49,7 +49,7 @@ def compress(folder): if not has_transparency(Image.open(f'{folder}/{file}')): jpg_comp = config['FFMPEG']['JpegComp'] - printer.files(int((progress / files) * 100), file, os.path.splitext(file)[0], req_image_ext, f"{jpg_comp}%") + printer.files(int((progress / files) * 100), file, os.path.splitext(file)[0], req_image_ext, f"level {jpg_comp}") os.system(f"ffmpeg -i '{folder}/{file}' {ffmpeg_params} -q {jpg_comp} '{folder}_compressed/{os.path.splitext(file)[0]}.{req_image_ext}'") else: diff --git a/FFMpeg-Compressor/modules/utils.py b/FFMpeg-Compressor/modules/utils.py index 9009c10..8cc41e2 100644 --- a/FFMpeg-Compressor/modules/utils.py +++ b/FFMpeg-Compressor/modules/utils.py @@ -36,7 +36,7 @@ def get_compression_status(orig_folder): if os.path.isfile(f'{orig_folder}/{file}'): orig_folder_len += 1 - for file in os.listdir(orig_folder): + for file in os.listdir(f'{orig_folder}_compressed'): if os.path.isfile(f'{orig_folder}_compressed/{file}'): comp_folder_len += 1