API and XML

Feel free to talk about anything and everything in this board.
Post Reply
Herman
Newbie
Newbie
Posts: 3
Joined: April 10th, 2008, 8:46 am

API and XML

Post 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
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: API and XML

Post by switch »

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

Replacing YOURUSERNAME and YOURPASSWORD with your details..
Herman
Newbie
Newbie
Posts: 3
Joined: April 10th, 2008, 8:46 am

Re: API and XML

Post 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  :)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: API and XML

Post 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.
Herman
Newbie
Newbie
Posts: 3
Joined: April 10th, 2008, 8:46 am

Re: API and XML

Post 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...
Post Reply