1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-24 15:00:30 +00:00

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

View file

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