FFMpeg-Compressor: New HideErrors parameter

This commit is contained in:
OleSTEEP 2023-10-07 00:52:07 +03:00
parent 70e3254395
commit 329196a376

View file

@ -50,6 +50,7 @@ for folder, folders, files in os.walk(orig_folder):
try:
os.rename(comp_file, f'{folder}/{file}'.replace(orig_folder, f"{orig_folder}_compressed"))
except FileNotFoundError:
if not configloader.config['FFMPEG']['HideErrors']:
printer.error(f"File {file} can't be processed! Maybe it is ffmpeg error or unsupported file. "
f"You can change -loglevel in ffmpeg parameters to see full error.")