FIX: Fix for the torrent auto-snatch script not intializing properly

This commit is contained in:
evilhero 2017-05-02 09:22:20 -04:00
parent 003d3bad7a
commit a750e2baad
1 changed files with 1 additions and 1 deletions

View File

@ -2618,7 +2618,7 @@ def torrentinfo(issueid=None, torrent_hash=None, download=False):
with open(mylar.AUTO_SNATCH_SCRIPT, 'r') as f: with open(mylar.AUTO_SNATCH_SCRIPT, 'r') as f:
first_line = f.readline() first_line = f.readline()
if mylar.SNATCH_SCRIPT.endswith('.sh'): if mylar.AUTO_SNATCH_SCRIPT.endswith('.sh'):
shell_cmd = re.sub('#!', '', first_line) shell_cmd = re.sub('#!', '', first_line)
if shell_cmd == '' or shell_cmd is None: if shell_cmd == '' or shell_cmd is None:
shell_cmd = '/bin/bash' shell_cmd = '/bin/bash'