Page 1 of 1

custom rss feeds

Posted: June 30th, 2009, 10:54 pm
by reticent
I understand sabnzbd supports just a handful of RSS feeds. I have designed my own little app to search a bunch of nzb indexing sites to return a list of downloadable items. I've made this page generate some RSS code which I'd like sabnzbd to parse, to get a list of stuff to download. I have formatted this RSS feed exactly the same as Newzbin do (so as to trick sabnzbd into thinking thats what it is!) however when I preview the RSS feed in sab it shows nothing under Matched, Not matched and Downloaded. Given it's formatted exactly the same, I wonder how sabnzbd determines a certain feed to be from what site? Is it using the hostname of the feed, ie v3.newzbin.com/blah/rss.php or whatever or is it just looking at the format? The only thing different between my feed and newzbin's is that mine is hosted on a different site.

Does anyone have any ideas. Any other ways around this would be awesome!

-edit- I just see that under warning messages there are some entries saying "cant download RSS feed from " where URL is the domain name im using. I have copy/pasted that URL into a browser and the feed comes up fine. Will sab not even bother trying to download the feed if it's not hosted on X server (ie to indicate which feed it is) -edit-

Cheers

Re: custom rss feeds

Posted: July 1st, 2009, 1:42 am
by shypike
It looks at the URL (it needs to contain "newzbin" or "newzxxx").
Unfortunately there's no single standard RSS feed format from search sites.
That means we practically need to add specific code for each site that does things it's own way.

The alternative for you is to do the macthing and NZB downloading yourself
and just give the NZB files to SABnzbd.

Re: custom rss feeds

Posted: July 1st, 2009, 5:58 am
by reticent
Hi shypike, thanks for your response. That explains perfectly why I couldnt get it working. I've just got it to generate the rss page @ server.com/newzbin/feed.rss and it's now working beautifully.

In terms of an improvement, I reckon it'd be great if it used something within the file rather than the hostname. Ive had a quick look at the rss feed from newzbin and see a couple of distinguishers that could be used:

v3.newzbin.com
v3.newzbin.com

I suppose thats what you mean about having to code in specifics for every site (which would get tiring whenever a site changes their layout, or as new sites showed up and closed). It'd just make it a little more user friendly as I could just code that into the feed itself.

Alternatively you could make a 'default' sorta standard yourself where you design the rss feed layout, and anyone writing web apps (like mine) do so in a way which complies with the way you have defined. Just a few thoughts.

Thanks

Re: custom rss feeds

Posted: July 1st, 2009, 7:56 am
by shypike
We look at the actual URL of the NZB link.
That was the most practical to implement as the structure of the newzbin URL has been very stable over the years.
The field is OK for newzbin, but there's no guarantee it
will be useful for other feeds.
It's a very ad-hoc business as long as there are no real standards.

Actually you should  probably format your RSS the way tvnzb.com does it.
We didn't need to do anything special for tvnzb.com, it just works.
Using the newzbin format is not a good idea, since we subsequently access newzbin's API
to get the NZB's.

Re: custom rss feeds

Posted: July 1st, 2009, 10:02 pm
by reticent
Hey shypike,

My system parses newzbin primarily so it'd be great if I can get that working. I dont mind if it uses their API as im generating code which looks the same as theirs (ie has the newzbin report ID and URL etc). It's weird, I've entered the feed address in the RSS section of sab and click preview - it shows a few listings (under matches as I have put a wildcard to match all of them). Is still shows that it was unable to connect to the feed under warnings (even though it clearly has as it's shown some results!). I then proceed to click 'force download' and get another entry saying 'unable to download feed' and none of the items are queued.

All I want sab to do is parse my page every 20mins to see if any new reports have been listed. If they are listed, download them. Formatting it RSS is a no brainer, but im struggling to figure out how sab article parses and uses this information.

Thanks

Re: custom rss feeds

Posted: July 2nd, 2009, 1:50 am
by shypike
Just email me one of your RSS files, I'll will check how SABnzbd processes it.
bugs@sabnzbd.org

Re: custom rss feeds

Posted: July 2nd, 2009, 8:37 pm
by reticent
Done!

Thanks