FFMpeg-Compressor: Fix Mimic mode with subdirs

This commit is contained in:
OleSTEEP 2023-10-07 00:06:51 +03:00
parent 04cc015909
commit 70e3254395

View file

@ -48,7 +48,7 @@ for folder, folders, files in os.walk(orig_folder):
if configloader.config['FFMPEG']['MimicMode']:
try:
os.rename(comp_file, f'{folder}_compressed/{file}')
os.rename(comp_file, f'{folder}/{file}'.replace(orig_folder, f"{orig_folder}_compressed"))
except FileNotFoundError:
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.")