From 3a874b56ddb31e01477802bc3d9f7a08cd890418 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 21 May 2014 09:42:33 -0700 Subject: [PATCH] Fixed issues with detecting _UNPACK_ when post-processing --- sickbeard/processTV.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index 765d8ff8..d1946b43 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -170,9 +170,10 @@ def validateDir(path, dirName, nzbNameOriginal, failed): returnStr += logHelper(u"The directory name indicates that it was previously rejected for being undersized.", logger.DEBUG) failed = True - elif ek.ek(os.path.basename, dirName).startswith('_UNPACK_'): + elif ek.ek(os.path.basename, dirName).upper().startswith('_UNPACK'): returnStr += logHelper(u"The directory name indicates that this release is in the process of being unpacked.", logger.DEBUG) + return False if failed: process_failed(os.path.join(path, dirName), nzbNameOriginal)