Problems adding NZBS.org urls

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
mrjanek
Newbie
Newbie
Posts: 13
Joined: May 18th, 2010, 10:34 am

Problems adding NZBS.org urls

Post by mrjanek »

I'm having problems with adding urls from NZBS.org by using the API.

I tried with the following url structure (example data):
http://hostname.dns.org:8080/api?mode=a ... 2304908854

This is what is reported in the log:
2010-05-19 01:56:06,661::INFO::[urlgrabber:125] Grabbing URL http://www.nzbs.org/index.php?action=getnzb
2010-05-19 01:56:06,953::WARNING::[nzbstuff:572] Invalid NZB file index.php!action=getnzb.nzb, skipping (reason=NzbParser instance has no attribute 'groups', line=0)
2010-05-19 01:56:06,953::ERROR::[misc:831] Error getting url http://www.nzbs.org/index.php?action=getnzb (cause= "")

Is the url correct? Are there any known issues with NZBS.org and adding urls?

Cheers,
mrjanek
Last edited by mrjanek on May 18th, 2010, 7:31 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problems adding NZBS.org urls

Post by shypike »

What happens if you paste the part starting with "http://www.nzbs.org/..." in the browser address bar?
mrjanek
Newbie
Newbie
Posts: 13
Joined: May 18th, 2010, 10:34 am

Re: Problems adding NZBS.org urls

Post by mrjanek »

shypike wrote: What happens if you paste the part starting with "http://www.nzbs.org/..." in the browser address bar?
If I paste the url in my browser adress bar and hit enter it starts to download the nzb file.
Also worth mentioning is that if I add it through the web interface by using "add by url" it works.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problems adding NZBS.org urls

Post by shypike »

I should have read your email better.
You are using the API!

What you forget to do is proper quoting.
Starting at &name=http you must replace all special characters in the full nzbs.org URL, like this:
:  %3A
/  %2F
?  %3F
&  %26
=  %3D
mrjanek
Newbie
Newbie
Posts: 13
Joined: May 18th, 2010, 10:34 am

Re: Problems adding NZBS.org urls

Post by mrjanek »

shypike wrote: I should have read your email better.
You are using the API!

What you forget to do is proper quoting.
Starting at &name=http you must replace all special characters in the full nzbs.org URL, like this:
:   %3A
/   %2F
?   %3F
&  %26
=  %3D
Perfect! Got it working now.
Thanks a lot!
mrjanek
Newbie
Newbie
Posts: 13
Joined: May 18th, 2010, 10:34 am

Re: Problems adding NZBS.org urls

Post by mrjanek »

Hmm.. now I seem to be having problems with adding NZBMatrix urls.

This is the url that I enter into my browser:
http://hostname.dns.org:8080/api?mode=a ... hfhg354dfg

This produces the following in the log:

Code: Select all

2010-05-19 16:57:31,692::INFO::[urlgrabber:125] Grabbing URL https://nzbmatrix.com/api-nzb-download.php?id=651392&username=janek&apikey=678dfgdfgdfgdg52646c2a6b
2010-05-19 16:57:32,601::WARNING::[nzbstuff:566] Invalid NZB file api-nzb-download.php!id=651392&username=janek&apikey=678047b7953fdfgdfgdfge3752646c2a6b.nzb, skipping (reason=not well-formed (invalid token), line=3)
2010-05-19 16:57:32,601::ERROR::[misc:826] Error getting url https://nzbmatrix.com/api-nzb-download.php?id=651392&username=janek&apikey=6dfgdfgdfgf76683ace3752646c2a6b (cause= "")
I have entered my nzbmatrix info in Config>Index sites and I'm running SABnzbd+ 0.5.2

Cheers
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problems adding NZBS.org urls

Post by shypike »

Both SABnzbd and nzbmatrix want their own apikey.
Make sure you quote the one for nzbmatrix properly.
I still see a & sign. Is the apikey for SABnzbd or for nzbmatrix ? :)
mrjanek
Newbie
Newbie
Posts: 13
Joined: May 18th, 2010, 10:34 am

Re: Problems adding NZBS.org urls

Post by mrjanek »

shypike wrote: Both SABnzbd and nzbmatrix want their own apikey.
Make sure you quote the one for nzbmatrix properly.
I still see a & sign. Is the apikey for SABnzbd or for nzbmatrix ? :)
The apikey in the link is for SABnzbd. I have entered my nzbmatrix details into sabnzbd's config page.
It seems like nzbmatrix are having some issues with their API today. I guess that's to blame since the URL used to work before.

Cheers
Post Reply