default to overwrite existing movies with new one

This commit is contained in:
simon 2021-08-03 23:17:16 +07:00
parent 6f571c82d4
commit cdd1e4072c
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ class MovieHandler:
os.makedirs(new_folder)
except FileExistsError:
print(f'{new_filename}\nalready exists in archive')
double = input('[o]: overwrite, [s]: skip and ignore\n')
if double == 'o':
double = input('[O]: overwrite, [s]: skip\n') or 'O'
if double == 'O':
subprocess.call(["trash", new_folder])
os.makedirs(new_folder)
elif double == 's':