mirror of https://github.com/evilhero/mylar
Use existing CHMOD_FILE var to set permissions on PostProcessed files
This commit is contained in:
parent
c54906132b
commit
326cf60295
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue