1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 16:22:45 +00:00

FIX: fix for keyfile usage with auto-snatch using correct information

This commit is contained in:
evilhero 2017-11-13 11:53:16 -05:00
parent e02a5d01f6
commit 7c171a7e8f

View file

@ -2747,10 +2747,17 @@ def torrentinfo(issueid=None, torrent_hash=None, download=False, monitor=False):
os.environ['host'] = mylar.CONFIG.PP_SSHHOST
os.environ['port'] = mylar.CONFIG.PP_SSHPORT
os.environ['user'] = mylar.CONFIG.PP_SSHUSER
os.environ['passwd'] = mylar.CONFIG.PP_SSHPASSWD
os.environ['localcd'] = mylar.CONFIG.PP_SSHLOCALCD
#bash won't accept None, so send check and send empty strings for the 2 possible None values if needed
if mylar.CONFIG.PP_SSHKEYFILE is not None:
os.environ['keyfile'] = mylar.CONFIG.PP_SSHKEYFILE
else:
os.environ['keyfile'] = ''
if mylar.CONFIG.PP_SSHPASSWD is not None:
os.environ['passwd'] = mylar.CONFIG.PP_SSHPASSWD
else:
os.environ['passwd'] = ''
#downlocation = re.sub("\'", "\\'", downlocation)
#downlocation = re.sub("&", "\&", downlocation)