How to 'Add By URL' is the existing URL already has an APIKEY field?

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
DejaVu
Newbie
Newbie
Posts: 11
Joined: July 29th, 2010, 3:55 pm

How to 'Add By URL' is the existing URL already has an APIKEY field?

Post by DejaVu »

This has probably been asked before, but I did search and could find the answer - so,

I'm pretty new to this and would like to know how I can rememdy this issue -

localhost:8080/sabnzbd/api?mode=addurl&apikey=[SabNZBd API key]&name=http://api.sitexample.com/download.php? ... b]&apikey=[/b][SITE APIKEY]

When using this URL to Add By URL, is there a fix?
Sab is seemingly accepting the second &apikey= and rejecting it the URL completely. Even though Sab's API is in the URL at the beginning. Sorry if this is a silly question, but my excuse is - I am new! :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: How to 'Add By URL' is the existing URL already has an APIKEY field?

Post by shypike »

The second part, the external URl needs quoting for the meta characters.
So & becomes %26 and ? becomes %3F, etc.

localhost:8080/sabnzbd/api?mode=addurl&apikey=[SabNZBd API key]&name=http%3A//api.sitexample.com/download.php%26id=[ID]%26username=[User]%26apikey=[SITE APIKEY]
Post Reply