Page 1 of 1

API and XML

Posted: April 10th, 2008, 9:00 am
by Herman
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

Re: API and XML

Posted: April 10th, 2008, 9:43 am
by switch
Try:
http://host/sabnzbd/api?mode=qstatus&ou ... URPASSWORD

Replacing YOURUSERNAME and YOURPASSWORD with your details..

Re: API and XML

Posted: April 10th, 2008, 2:52 pm
by Herman
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  :)

Re: API and XML

Posted: April 10th, 2008, 2:58 pm
by switch
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.

Re: API and XML

Posted: April 11th, 2008, 2:12 am
by Herman
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...