Page 1 of 1

Pass rss url to post-processing

Posted: October 14th, 2008, 8:03 pm
by qwerty967
It would be nice to have the rss url that an nzb was downloaded from passed as an argument to the post-processing script. An empty string would indicate that the nzb was not obtained from an rss feed.

If this isn't going to happen, then can someone tell me how I can edit the source for the native Mac version? I went through the source and saw that I just have to modify sabnzbd.newsunpack.external_processing. But I'm not sure where newsunpack.py in the native Mac version is located, or if it's even possible to edit the source on the Mac version.

Re: Pass rss url to post-processing

Posted: October 15th, 2008, 5:25 am
by shypike
Not sure if this would be generally useful (and we already have so many parameters).
Changing the source code is not that easy.
You will not have a parameter to pass to the script, because currently the
RSS feed name is not stored as a parameter of a job.

Running from source is described in http://sabnzbd.wikidot.com/howto-osx-src.

Re: Pass rss url to post-processing

Posted: October 15th, 2008, 4:36 pm
by qwerty967
Would it be feasible/easier to store the url in the Newzbin id? I don't use Newzbin so those arguments are worthless to me.

Re: Pass rss url to post-processing

Posted: October 15th, 2008, 4:44 pm
by qwerty967
Never mind. I'm an idiot. I just realized I can specify a different script for each feed.