Sab API: Add NZB by URL - but can I give it a name?

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
sam1am
Newbie
Newbie
Posts: 11
Joined: May 15th, 2008, 1:40 am

Sab API: Add NZB by URL - but can I give it a name?

Post by sam1am »

Hey I'm having trouble with the API - I can pass an NZB by URL, but sabnzbd does not return an ID that I can then use to rename the queue item. 

I was wondering if there was a way to bypass the problem altogether and just pass a name at the same time as adding the NZB.  The API doesn't mention this capability specifically, but it's a little unclear in the documentation.

Help?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab API: Add NZB by URL - but can I give it a name?

Post by shypike »

Yeah, documentation is always a pain. Developers don't like to create it.
Just add &nzbname=jobname to the URL.
sam1am
Newbie
Newbie
Posts: 11
Joined: May 15th, 2008, 1:40 am

Re: Sab API: Add NZB by URL - but can I give it a name?

Post by sam1am »

Thanks!  The documentation got me pretty far  :P
Post Reply