Page 1 of 1
Using addurl with newzbin
Posted: December 5th, 2008, 9:18 am
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
Re: Using addurl with newzbin
Posted: December 5th, 2008, 9:25 am
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?
Re: Using addurl with newzbin
Posted: December 5th, 2008, 9:31 am
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?
Re: Using addurl with newzbin
Posted: December 5th, 2008, 9:36 am
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 :-)
Re: Using addurl with newzbin
Posted: December 5th, 2008, 9:41 am
by switch
Try:
Code: Select all
http://myserv/sabnzbd/addID?id=%l&cat=default
edit: changed above code block
Re: Using addurl with newzbin
Posted: December 5th, 2008, 9:49 am
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!
Re: Using addurl with newzbin
Posted: December 5th, 2008, 11:28 am
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
Re: Using addurl with newzbin
Posted: December 5th, 2008, 11:38 am
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
Re: Using addurl with newzbin
Posted: December 5th, 2008, 3:09 pm
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!