FFMpeg-Compressor: Fix errors hiding
This commit is contained in:
parent
0a7e62477a
commit
224359f251
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
from modules import configloader
|
||||||
from modules import printer
|
from modules import printer
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
@ -76,6 +77,7 @@ def check_file_existing(folder, file):
|
||||||
if not len(glob(f"{folder}/{os.path.splitext(file)[0]}*")):
|
if not len(glob(f"{folder}/{os.path.splitext(file)[0]}*")):
|
||||||
global errors_count
|
global errors_count
|
||||||
errors_count += 1
|
errors_count += 1
|
||||||
|
if not configloader.config['FFMPEG']['HideErrors']:
|
||||||
printer.error(f"{file} not processed. It can be ffmpeg error or file type is unsupported. "
|
printer.error(f"{file} not processed. It can be ffmpeg error or file type is unsupported. "
|
||||||
f"You can set '-loglevel error' in ffmpeg config to see full error.")
|
f"You can set '-loglevel error' in ffmpeg config to see full error.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue