FFMpeg-Compressor: Refactor and bar fix

This commit is contained in:
OleSTEEP 2024-05-05 03:14:27 +03:00
parent 9612d30d06
commit e71cad4d5f
4 changed files with 87 additions and 75 deletions

View file

@ -25,7 +25,7 @@ def get_compression(orig, comp):
orig = get_dir_size(orig, processed_files)
comp = get_dir_size(comp, processed_files)
print(f"Result: {orig/1024/1024:.2f}MB -> {comp/1024/1024:.2f}MB Δ {(orig - comp)/1024/1024:.2f}MB")
print(f"\nResult: {orig/1024/1024:.2f}MB -> {comp/1024/1024:.2f}MB Δ {(orig - comp)/1024/1024:.2f}MB")
except ZeroDivisionError:
printer.warning("Nothing compressed!")