From 452895a0587c6157ec9716a4c90031c9a7111560 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Fri, 2 May 2014 23:26:26 +0200 Subject: [PATCH] Prevent postprocesser from removing TV_DOWNLOAD_DIR --- sickbeard/processTV.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index b9cd8187..12f9306e 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -147,7 +147,8 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior if process_method == "move" and \ ek.ek(os.path.normpath, processPath) != ek.ek(os.path.normpath, sickbeard.TV_DOWNLOAD_DIR): - delete_dir(processPath) + if processPath != sickbeard.TV_DOWNLOAD_DIR: + delete_dir(processPath) return returnStr