FFMpeg-Compressor: Refactor and bar fix
This commit is contained in:
parent
9612d30d06
commit
e71cad4d5f
4 changed files with 87 additions and 75 deletions
|
@ -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!")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue