Post download file

Want something added? Ask for it here.
Post Reply
skar
Newbie
Newbie
Posts: 6
Joined: January 13th, 2013, 5:42 am

Post download file

Post by skar »

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
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Post download file

Post by sander »

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?
skar
Newbie
Newbie
Posts: 6
Joined: January 13th, 2013, 5:42 am

Re: Post download file

Post by skar »

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.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Post download file

Post by sander »

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