Fixed issues with detecting _UNPACK_ when post-processing

This commit is contained in:
echel0n 2014-05-21 09:42:33 -07:00
parent cfa5d99066
commit 3a874b56dd
1 changed files with 2 additions and 1 deletions

View File

@ -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)