Hello,
I appreciate there are API's and such, but I wondered if it would be possible at the end of a download if a file could be created which was the indicated the status of the download.
So for instance SABnzbd is supplied with a file called "Fantastic TV S01E02.nzb" then a file could be created to indicate the following.
Fantastic TV S01E02.InQueue
Fantastic TV S01E02.Downloading
Fantastic TV S01E02.Failed
Fantastic TV S01E02.Passed
This way another program could find out the status of the download and maybe take another course of action.
I appreciate it's not as sophisticated as an API, but it would potentially avoid having to use different api's for different newsgroup readers...
Thanks
Post download file
Re: Post download file
I'm quite sure you can do that with a post processing script (http://wiki.sabnzbd.org/user-scripts) with parameter #7: "Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+2": create the file based on the parameter.
Does this help you?
Does this help you?
Re: Post download file
This would require the user to add a script which echo'd the exit code into the history. What I am looking for is something to be permanently added, which could then be accessed by applications like sickbeard, so that they knew if something was successful and whether the applications needed to keep searching.
Of course there are issues of timing, and other things, but it would be useful.
Of course there are issues of timing, and other things, but it would be useful.
Re: Post download file
Do you want it for yourself?
Or do you want it for other users? If so, it sounds quite theoretical to me as any script (and thus the sickbeard script) can do it itself.
Or do you want it for other users? If so, it sounds quite theoretical to me as any script (and thus the sickbeard script) can do it itself.