Missing "Path" property in API Call "queue"

Want something added? Ask for it here.
Post Reply
cyberkyro
Newbie
Newbie
Posts: 2
Joined: October 4th, 2013, 12:39 pm

Missing "Path" property in API Call "queue"

Post by cyberkyro »

Hi folks,

I developed my own (Windows) app to accomplish a preview feature for queued job's.
Unfortunately I have issues to get always the correct temporary path for a queued job item (uncompleted downloads) using the API - Especially if the queued job was renamed or the download was started twice.

I know it's easy to get the base directory for the temporary folder through the API, but not the full path for a single queued job.
For completed jobs there exists a property called "Path" (history\slots\slot). which is exactly what I need for queued items (queue\slots\slot)

Best regards,
cyberkyro
Last edited by cyberkyro on November 15th, 2013, 8:18 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: API: Missing "Path" property for queued job items

Post by shypike »

Sorry for the late reaction, it was on my to-do for a long time.
However, I think the field that you're looking for is already present in the API call "history".
It's called ""storage" : "/path/to/Videos/Series/Title/Season 3/Title.S03E04.Episode"
cyberkyro
Newbie
Newbie
Posts: 2
Joined: October 4th, 2013, 12:39 pm

Re: API: Missing "Path" property for queued job items

Post by cyberkyro »

Hi,

Thanks for your response.

Unfortunately that's not the variable what i'm looking for...
a) The API call "history" contains only completed or failed Downloads, but not Downloads they are still in progress (Status=Downloading, Paused, Queued...)!
b) The "Storage" property from the API call "history" contains the {extraction path}, not the {temporary/incoming path}!

The {incoming/temporary path} is already available in the "path" property which only exists in the API call "history", but not in the API call "queue".

Hopefully, the "path" property will be available in the API call "Queue" in later versions of sabnzbd ;-)

I need this variable (incoming/temporary path, not the extraction path) for Downloads they are still in Progress!

Best regards,
Cyberkyro
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Missing "Path" property in API Call "queue"

Post by shypike »

Clear, I'll see what I can do.
But it is a minority request obviously or do you see a wider audience for your tool?
Post Reply