From a83311e909e678cdd87308bdeeb7893976ce29e8 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 13 Oct 2015 20:25:58 +1030 Subject: [PATCH] force clean does't overide delete_failed. Fixes #842 --- core/nzbToMediaUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nzbToMediaUtil.py b/core/nzbToMediaUtil.py index 21f76870..27af0019 100644 --- a/core/nzbToMediaUtil.py +++ b/core/nzbToMediaUtil.py @@ -681,7 +681,7 @@ def cleanDir(path, section, subsection): if not os.path.exists(path): logger.info('Directory %s has been processed and removed ...' % (path), 'CLEANDIR') return - if core.FORCE_CLEAN: + if core.FORCE_CLEAN and not core.FAILED: logger.info('Doing Forceful Clean of %s' % (path), 'CLEANDIR') rmDir(path) return