Page 1 of 1

Problems adding NZBS.org urls

Posted: May 18th, 2010, 7:25 pm
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

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 1:43 am
by shypike
What happens if you paste the part starting with "http://www.nzbs.org/..." in the browser address bar?

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 6:50 am
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.

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 7:11 am
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

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 9:03 am
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!

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 10:10 am
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

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 5:25 pm
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 ? :)

Re: Problems adding NZBS.org urls

Posted: May 19th, 2010, 5:34 pm
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