Did the post processing API change?
Posted: May 17th, 2011, 6:25 am
Hi there!
It seems to me that the post processing API changed somehow. When I try to get parameters with sys.argv in a python post-processing-script the sys.argv list comes back with only sys.argv[0] which won't help me much.
I did look up the user-script-wiki at wiki.sabnzbd.org/user-scripts and tried calling my python script with a cmd file like so:
^^ This worked. (I only really need %1 and %3 for my script)
I do remember though that I could still get sys.argv directly in sabnzbd++ versions pre 0.6., so I am not very sure what changed.
Cheers and thanks for the hard but great work you all do.
It seems to me that the post processing API changed somehow. When I try to get parameters with sys.argv in a python post-processing-script the sys.argv list comes back with only sys.argv[0] which won't help me much.
I did look up the user-script-wiki at wiki.sabnzbd.org/user-scripts and tried calling my python script with a cmd file like so:
Code: Select all
C:\Python32\python.exe C:\Users\gitar\AppData\Local\sabnzbd\scripts\working\mysab.py %1 %2 %3I do remember though that I could still get sys.argv directly in sabnzbd++ versions pre 0.6., so I am not very sure what changed.
Cheers and thanks for the hard but great work you all do.