API and XML

Feel free to talk about anything and everything in this board.

API and XML

Postby Herman » April 10th, 2008, 10:00 am

Hi there,

I hope I'm in the right topic, cause I'm new here...

I tried the follwing API-command and indeed received an XML file:

http://host:port/sabnzbd/api?mode=qstatus&output=xml

The content of the XML-file was :



Login



    Username:

    Password:

   




At that moment SABnzbd+ was downloading, so expected an other content in XML.
What am I missing?

cheers,
Herman
Herman
Newbie
Newbie
 
Posts: 3
Joined: April 10th, 2008, 9:46 am

Re: API and XML

Postby switch » April 10th, 2008, 10:43 am

Try:
http://host/sabnzbd/api?mode=qstatus&ou ... URPASSWORD

Replacing YOURUSERNAME and YOURPASSWORD with your details..
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: API and XML

Postby Herman » April 10th, 2008, 3:52 pm

thank you! Reason I was asking this is that I have a connection that drops sometimes and I can't find a way to autoresume a download. Therefore I'm tring to build an application in Delphi to monitor this, cause I saw that there is a api-call for resuming a download...
If you  have any firther suggestions, they are welcome  :)
Herman
Newbie
Newbie
 
Posts: 3
Joined: April 10th, 2008, 9:46 am

Re: API and XML

Postby switch » April 10th, 2008, 3:58 pm

I'm not sure resume will function as you want, it just unpaused the current download queue.

Does SABnzbd not download after your connection drops? Try setting a smaller timeout for your servers in config>servers.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: API and XML

Postby Herman » April 11th, 2008, 3:12 am

I'll try the smaller timeout tonight. I have to do some maintenance at my server first.
I had the timeout set at 120 now, and after SABnzbd gets in paused-state, I have to resume manually...
Herman
Newbie
Newbie
 
Posts: 3
Joined: April 10th, 2008, 9:46 am


Return to General Discussion