Use existing CHMOD_FILE var to set permissions on PostProcessed files

This commit is contained in:
TheLabRatt 2014-05-09 17:46:33 +01:00 committed by evilhero
parent c54906132b
commit 326cf60295
1 changed files with 6 additions and 0 deletions

View File

@ -789,6 +789,12 @@ class PostProcessor(object):
# return
#logger.fdebug("Removed temporary directory : " + str(self.nzb_folder))
#Hopefully set permissions on downloaded file
try:
os.chmod( dst, int(mylar.CHMOD_FILE,8) )
except (OSError, IOError):
return
#delete entry from nzblog table
myDB.action('DELETE from nzblog WHERE issueid=?', [issueid])
#update snatched table to change status to Downloaded