Add by URL through API Nzb.su
Forum rules
Help us help you:
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.
Re: Add by URL through API Nzb.su
How do you send the URL to SABnzbd?
Re: Add by URL through API Nzb.su
String urlString = V.baseURLsab + "/api?mode=addurl&output=xml&apikey=" + V.APIkeysab+ "&name="+downloadURL;
URL url = new URL(urlString);
URLConnection urlC = url.openConnection();
urlC.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)");
return urlC.getInputStream();
URL url = new URL(urlString);
URLConnection urlC = url.openConnection();
urlC.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)");
return urlC.getInputStream();
Re: Add by URL through API Nzb.su
You need to quote all meta characters in the nzb.su URL.
So a space becomes %20, etc.
So a space becomes %20, etc.
Re: Add by URL through API Nzb.su
Ok, so now I'm sending this URL for example: http://sabnzbd:90/sabnzbd/api?mode=addu ... zbSuApikey
Still a no-go, I'm getting this result: http://nzb.su/getnzb/8e2e8e19c1dc61af15d8dce0d8ca0.nzb » URL Fetching failed; Unusable NZB file, Try again
Still a no-go, I'm getting this result: http://nzb.su/getnzb/8e2e8e19c1dc61af15d8dce0d8ca0.nzb » URL Fetching failed; Unusable NZB file, Try again
Re: Add by URL through API Nzb.su
URL quoting for & isn't & it's %26
What you're using is HTML quoting, which is something completely different.
Illustration: http://old.zope.org/Members/4am/url_quoting
What you're using is HTML quoting, which is something completely different.
Illustration: http://old.zope.org/Members/4am/url_quoting
Re: Add by URL through API Nzb.su
That's it, it works perfectly now, thank you so much!

