|
|
@ -133,7 +133,10 @@ def external_processing(extern_proc, complete_dir, filename, msgid, nicename, ca |
|
|
|
""" Run a user postproc script, return console output and exit value |
|
|
|
""" |
|
|
|
command = [str(extern_proc), str(complete_dir), str(filename), |
|
|
|
str(nicename), str(msgid), str(cat), str(group), str(status), str(failure_url)] |
|
|
|
str(nicename), str(msgid), str(cat), str(group), str(status)] |
|
|
|
|
|
|
|
if failure_url: |
|
|
|
command.extend(str(failure_url)) |
|
|
|
|
|
|
|
if extern_proc.endswith('.py') and (sabnzbd.WIN32 or not os.access(extern_proc, os.X_OK)): |
|
|
|
command.insert(0, 'python') |
|
|
|