How to simulate post-processing?

Want something added? Ask for it here.
Post Reply
emzero
Newbie
Newbie
Posts: 3
Joined: March 12th, 2012, 10:47 pm

How to simulate post-processing?

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: How to simulate post-processing?

Post 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.
emzero
Newbie
Newbie
Posts: 3
Joined: March 12th, 2012, 10:47 pm

Re: How to simulate post-processing?

Post 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
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: How to simulate post-processing?

Post 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.
Post Reply