Page 1 of 1

How to simulate post-processing?

Posted: March 14th, 2012, 11:20 am
by emzero
Hi,

I'm developing a python post-processing script to auto-download subtitles. The thing is that is very hard to test since this call is only executed once a download is completed.

Is there a way to simulate a completed download or a post-processing script call?
If not, how can I re-add something already downloaded to make SABnzbd to "finish" it again in order to run the script? (without downloading it again of course)

Thanks

Re: How to simulate post-processing?

Posted: March 14th, 2012, 12:22 pm
by shypike
Just make sure you have a folder that contains files downloaded by SABnzbd,
without the script.
Then run the script from the command line with the right parameters.

Re: How to simulate post-processing?

Posted: March 14th, 2012, 12:37 pm
by emzero
Yes, but what I want to test is exactly that, which parameters are being send by SABnzbd. I know they're described here: http://wiki.sabnzbd.org/user-scripts.

If I download and set the processing to just Download, move everything to my temporary download folder and re-add the job using queue repair, that should complete the job again without re-downloading everything right? I'll give this a try.

Thanks

Re: How to simulate post-processing?

Posted: March 14th, 2012, 2:15 pm
by jcfp
You can see the exact parameters passed in (info of debug level) logging too, any small job with a post-proc script set would give you a real life example.