added forceClean for outputDirectory.

This commit is contained in:
clinton-hall 2014-03-13 14:04:26 +10:30
parent cd8607e42e
commit a1f659e21e
4 changed files with 7 additions and 2 deletions

View file

@ -337,8 +337,10 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
Logger.exception("Unable to delete folder %s", dirName)
return 0 # success
if nzbName == "Manual Run" or download_id == "none":
if nzbName == "Manual Run":
return 0 # success
if download_id == "none":
return 1 # just to be sure TorrentToMedia doesn't start deleting files as we havent verified changed status.
# we will now check to see if CPS has finished renaming before returning to TorrentToMedia and unpausing.
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.