Adding newznab url via the API

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
compound84
Newbie
Newbie
Posts: 2
Joined: February 17th, 2013, 1:07 pm

Adding newznab url via the API

Post by compound84 »

Hi, im trying to use the sabnzbd API and having a little trouble with adding via URL. as to access a file via url in newznab you have to provide aditional params i.e the API key so you end up with a url like this:http://news.XXX.org/getnzb/0221a078277e ... =1&r=XXXXX and sab only uses the first bit, any idea how i can do this? thanks
compound84
Newbie
Newbie
Posts: 2
Joined: February 17th, 2013, 1:07 pm

Re: Adding newznab url via the API

Post by compound84 »

I solved this by using %26 instead of & in the url param!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding newznab url via the API

Post by shypike »

That's the standard way to use URLs as parameters.
In fact you should also substitute : and /
Post Reply