FFMpeg-Compressor: New HideErrors parameter
This commit is contained in:
parent
70e3254395
commit
329196a376
1 changed files with 3 additions and 2 deletions
|
@ -50,8 +50,9 @@ for folder, folders, files in os.walk(orig_folder):
|
||||||
try:
|
try:
|
||||||
os.rename(comp_file, f'{folder}/{file}'.replace(orig_folder, f"{orig_folder}_compressed"))
|
os.rename(comp_file, f'{folder}/{file}'.replace(orig_folder, f"{orig_folder}_compressed"))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
printer.error(f"File {file} can't be processed! Maybe it is ffmpeg error or unsupported file. "
|
if not configloader.config['FFMPEG']['HideErrors']:
|
||||||
f"You can change -loglevel in ffmpeg parameters to see full error.")
|
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.")
|
||||||
|
|
||||||
if configloader.config['FFMPEG']['CopyUnprocessed']:
|
if configloader.config['FFMPEG']['CopyUnprocessed']:
|
||||||
printer.info("Copying unprocessed files...")
|
printer.info("Copying unprocessed files...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue