Skip to content

Commit

Permalink
Don't overwrite manual post-processing delete folder preference (#11529)
Browse files Browse the repository at this point in the history
  • Loading branch information
medariox authored Oct 28, 2023
1 parent 057e7d3 commit 1231f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medusa/process_tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def _clean_up(self, path, proc_type, delete=False):
if self.unwanted_files:
self.delete_files(path, self.unwanted_files)

if not app.NO_DELETE or clean_folder:
if (proc_type != 'manual' and not app.NO_DELETE) or clean_folder:
check_empty = False if clean_folder else True
if self.delete_folder(path, check_empty=check_empty):
self.log_and_output('Deleted folder: {path}', level=logging.DEBUG, **{'path': path})
Expand Down

0 comments on commit 1231f95

Please sign in to comment.