Page 1 of 1

API: How to tell if download has completed

Posted: December 8th, 2009, 12:00 am
by bazzz
Hi,

Can anyone tell me if there is any more documentation of the history function in the 0.5 API? I've been looking at http://wiki.sabnzbd.org/api which I think gives me the information I need, although it would be nice to see in depth explanations of every single field.

What I'm trying to ascertain is how to tell if a download has completed; i.e. all files downloaded, and any post-processing (i.e. repair/unpack/delete) has finished. Am I right in thinking that the "status" item in the history output should be "Completed"? If I understand things correctly, jobs are removed from the queue as soon as all files are downloaded, but before post-processing - right?

Cheers.

Re: API: How to tell if download has completed

Posted: December 8th, 2009, 12:25 am
by bazzz
Thanks for the quick reply - I'll just scan the queue to see if the id is missing; if it is scan the history and check for "Failed" or "Completed" status. (In case you were wondering, the action the program will be taking at this point is to instruct uTorrent to load a .torrent file, presumably of the same(ish) data).