Pass rss url to post-processing

Want something added? Ask for it here.
Post Reply
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Pass rss url to post-processing

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

Re: Pass rss url to post-processing

Post 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.
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Re: Pass rss url to post-processing

Post 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.
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Re: Pass rss url to post-processing

Post by qwerty967 »

Never mind. I'm an idiot. I just realized I can specify a different script for each feed.
Post Reply