I am making a program that can upload, track and move downloads for multiple users. It does this by using the 5.0 API.
The problem I am having is that the download can be 'lost' when it is moved from the queue to the history.
I would like to see that the download is always in either the queue or the history. This would also mean a new API call to get both queue and history in 1 command to prevent duplicate items.
Thanx
Sync the history and queue
Re: Sync the history and queue
Long term issue, cannot be done in the current design.
Re: Sync the history and queue
Ok that is too bad, but I can work around it.
But would the one command for both the queue and the history be possible?
That would save some time if a third party needs both.
But would the one command for both the queue and the history be possible?
That would save some time if a third party needs both.
Re: Sync the history and queue
I think the design is cleaner if they are separate.
Re: Sync the history and queue
I have made a simple application that monitors SABnzbd's progress.
It now always must make two requests: one for the status of active jobs and another one for the history to find jobs that are being verified, repaired or unpacked.
I can understand that the current design is cleaner. However what bothers me most is the length of the history. Although I am only interested in the active jobs I must download the entire history which grows over time.
Of course I purge the history every now and then but it would be nice if there were for example an extra parameter &activeonly=1 when requesting the history that would only return the active 'slots' in the history.
It now always must make two requests: one for the status of active jobs and another one for the history to find jobs that are being verified, repaired or unpacked.
I can understand that the current design is cleaner. However what bothers me most is the length of the history. Although I am only interested in the active jobs I must download the entire history which grows over time.
Of course I purge the history every now and then but it would be nice if there were for example an extra parameter &activeonly=1 when requesting the history that would only return the active 'slots' in the history.
Re: Sync the history and queue
I see that the documentation is a bit incomplete.
This is the full history API call (same for queue):
This is the full history API call (same for queue):
Code: Select all
api?mode=history&output=xml&start=START_POS&limit=MAX_AMOUNT
Re: Sync the history and queue
Excellent, works like a charm. Thank you for the quickest 'fix' ever 

