Using addurl with newzbin

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
mariush
Newbie
Newbie
Posts: 4
Joined: December 5th, 2008, 9:08 am

Using addurl with newzbin

Post by mariush »

Hi,

I'm trying to use /api?addurl with Newzbin, which results in: "WARNING [sabnzbd.misc] Cannot read c:\docume~1\admini~1\lokale~1\temp\tmpstrnjx"
addid for newzbin works fine, and addurl works fine from other nzb-sites (ex: tvnzb.com), so I'm guessing there's some specific parsing concerning newzbin-addresses from sabnzbd.

Note that I get the 'ok'-web page from sabnzbd every time.

I've checked the cache, temporary files etc.


Any suggestions?


Version: 0.4.5
OS: Windows XP SP2
Install-type: Windows Installer
Skin (if applicable): Smpl (Same problem on all skins.)
Firewall Software: XP SP2 Firewall, + Checkpoint
Are you using IPV6? no
Is the issue reproducible? yes
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Using addurl with newzbin

Post by shypike »

You cannot use newzbin URL-s, due to the authentication required.
Use newzbin report numbers instead.
Just type in the report number (the long numeric one or the short alphanumerical).

In what context do you need the newzbin URL?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Using addurl with newzbin

Post by switch »

It's probably easier to just use addid instead of addurl for all your adding. AddID has special code which will allow for either the newzbin reportid, the newzbin url, or any other normal url you would use for addurl.

We should probably replicate the code for addurl so it behaves the same.


Edit: Strike that, seems that functionality is only in 0.5
I suggest just removing the reportid from the newzbin url and using addid just for the newzbinid

Does adding the report id on the main page work fine?
Last edited by switch on December 5th, 2008, 9:35 am, edited 1 time in total.
mariush
Newbie
Newbie
Posts: 4
Joined: December 5th, 2008, 9:08 am

Re: Using addurl with newzbin

Post by mariush »

Well, I'm using a modified standard_menu.ini with Opera, so I can quickly right-click on a nzb-link and send it to sabnzbd on a different computer. (See attachment.)
It takes that link and sends it to "http://myserv:myport/sabnzbd/api?mode=addurl&name=%l&cat=movies" / tv

It's just a lot quicker than saving the file to the watched folder / subfolder on the server.


Thanks for your reply.


switch; addid works fine on both the /api? and in the main site. Just don't know how I can extract it via Opera's context menu :-)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Using addurl with newzbin

Post by switch »

Try:

Code: Select all

http://myserv/sabnzbd/addID?id=%l&cat=default
edit: changed above code block
Last edited by switch on December 5th, 2008, 9:43 am, edited 1 time in total.
mariush
Newbie
Newbie
Posts: 4
Joined: December 5th, 2008, 9:08 am

Re: Using addurl with newzbin

Post by mariush »

%l is the complete url on the link that I'm right-clicking, so the resulting url is;
http://myserv:myport/sabnzbd/api?mode=addid&id=http://www.newzbin.com/browse/post/xxxxxxxx/nzb&cat=movies

..which results in this;

Traceback (most recent call last):
  File "cherrypy\_cphttptools.pyo", line 126, in _run
  File "cherrypy\filters\__init__.pyo", line 151, in applyFilters
  File "sabnzbd\interface.pyo", line 234, in beforeFinalize
TypeError: api() got an unexpected keyword argument 'id'


(/addid?id= results in "The path '/sabnzbd/addid' was not found." so I'm guessing you meant /api?mode=addid&id=)


edit: Oh, case-sensitive. That works!

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

Re: Using addurl with newzbin

Post by shypike »

You should only put the XXXXXX part.
So, just the report number. Not the full URL.

http://myserv:myport/sabnzbd/api?mode=addid&id=xxxxxxxx&cat=movies
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Using addurl with newzbin

Post by switch »

shypike wrote: You should only put the XXXXXX part.
So, just the report number. Not the full URL.

http://myserv:myport/sabnzbd/api?mode=addid&id=xxxxxxxx&cat=movies
The full url will work fine for /sabnzbd/addID
mariush
Newbie
Newbie
Posts: 4
Joined: December 5th, 2008, 9:08 am

Re: Using addurl with newzbin

Post by mariush »

mariush wrote: edit: Oh, case-sensitive. That works!

Thanks!
shypike/switch: As I was trying to say it now works fantastic! Thanks for all your help!
Post Reply