Browse Source

Fixed issues with detecting _UNPACK_ when post-processing

tags/release_0.1.0
echel0n 11 years ago
parent
commit
3a874b56dd
  1. 3
      sickbeard/processTV.py

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

Loading…
Cancel
Save