Page 1 of 1

API: Addurl with nzbname

Posted: June 8th, 2013, 3:25 am
by DWELLER_ZA
Hi Guys,

My first post :)

I've been using SABNZBd for a few years now.
I've written my own post processing scripts as well as a program that uses the API.

I've run into an issue where the API call to add a NZB by URL doesn't want to accept the name I gave it.

Version: 0.7.11
OS: Windows 7 Pro x64 SP1
Install-type: Windows Installer
Skin Default
Firewall Software: None
Are you using IPV6? No
Is the issue reproducible? Yes

The API suggest one uses this format: api?mode=addurl&name=http://www.example.com/example.nzb&pp=3 ... e=NiceName

My string is built up like this: http://127.0.0.1:8080/sabnzbd/api?mode= ... priority=0"

With nzbname being an encoded http path, SABNAME being just a test string, sabKey being the API key.
When I execute the built up string, SABNZBd reports 'ok' and it downloads and imports the NZB but completely ignoring the name I specified.
The NZB comes from a private site called newshost.za.net. Greetings from South Africa ;)

I found this thread from 2010, which seems like a similar / the same issue: https://forums.sabnzbd.org/viewtopic.ph ... 62&p=29955

So the questions:

1. Is my usage of the &nzbname correct?
2. Is this a known issue?
3. Is there a workaround?

Thanks and Regards

Re: API: Addurl with nzbname

Posted: June 8th, 2013, 5:13 am
by shypike
What you do is all correct and it works when I test it with other sites.
As I have no access to your indexer, I cannot test.
Can you PM me a full URL for an NZB. At least, when you trust me enough with the embedded authorization data :)