FFMpeg-Compressor: Windows cmd support

This commit is contained in:
OleSTEEP 2024-01-12 23:38:07 +03:00
parent dc858b4ebb
commit 7ed04ffd22
4 changed files with 19 additions and 4 deletions

View file

@ -1,5 +1,7 @@
import os
from progress.bar import IncrementalBar
import colorama
import sys
import os
# Fill whole string with spaces for cleaning progress bar
@ -38,3 +40,8 @@ def files(source, dest, dest_ext, comment):
def unknown_file(file):
print(clean_str(f"\r* \033[0;33m{file}\033[0m (Not recognized)"))
bar.next()
def win_ascii_esc():
if sys.platform == "win32":
colorama.init()

View file

@ -1,7 +1,7 @@
from modules import configloader
from modules import printer
from shutil import copyfile
from glob import glob
import sys
import os
errors_count = 0
@ -70,5 +70,10 @@ def check_duplicates(new_folder):
return new_folder
def sys_pause():
if sys.platform == "win32":
os.system("pause")
def help_message():
return "Usage: ffmpeg-comp {folder}"