Page 1 of 1

nzbs.org category problem

Posted: June 20th, 2011, 5:20 am
by saroz
Hi,

We're currently talking about a nzbs.org category problem.

It would be great if you could inform as to how the category tags are suppose to work when the category comes from the API call:

http://code.google.com/p/sabconnectplus ... tail?id=75

Re: nzbs.org category problem

Posted: June 20th, 2011, 5:49 am
by shypike
SABnzbd can get category info from a limited set of indexing sites,
but only when it can retrieve the NZB itself from a URL.
When you send an NZB file through the API, you will have to set
an explicit user category. So it won't do tag-to-user-category mapping.

When you send an NZB-URL through the API, SABnzbd will be
able to get an indexer's category, if and only if it has an x-dnzb-category header.
(Or when it's a newzbin.com URL).
In that case it will do mapping. It looks like nzbs.org has this header.


Perhaps we should ask indexing sites to add their tags in the NZB file,
preferably in a standardized way.

An alternative would be if we support an extra parameter in the API call
to add an indexer-category. Say something like &indexcat=Foreign
It would also be possible to map when the category isn't found,
but that would give potential clashes, e.g. when your "tv" category is different from the indexer's.