More info in the Status script?
Posted: March 25th, 2008, 5:29 pm
Hi,
As I am almost finished with a new Windows-based SABnzbd monitor script, I was wondering if it would be possible to add some more information to the Status script (http://localhost:8080/sabnzbd/api?mode=qstatus)
I think it would be nice if a repair and unpacking status could be added, so, if something is being either repaired or unpacked, a user would be able to get information about this.
Something along the lines of
and
I don't know how much information you can supply for the status, or if it makes sense to make more than one statusfield (for instance, if its possible to tell that SAB is on file X of Y), so the above is just my shots in the dark, and quite possibly you are able to supply more information.
I'm guessing that I could get the information by scraping http://localhost:8080/sabnzbd/history/ but it would be much nicer (and template independent / futureproof), if it could be contained in the status XML.
As I am almost finished with a new Windows-based SABnzbd monitor script, I was wondering if it would be possible to add some more information to the Status script (http://localhost:8080/sabnzbd/api?mode=qstatus)
I think it would be nice if a repair and unpacking status could be added, so, if something is being either repaired or unpacked, a user would be able to get information about this.
Something along the lines of
Code: Select all
<repairing>True/False</repairing>
<repairingfile>FILENAME HERE</repairingfile>
<repairstatus>STATUS</repairstatus>
Code: Select all
<unpacking>True/False</unpacking>
<unpackingfile>FILENAME HERE</unpackingfile>
<unpackstatus>STATUS</unpackstatus>
I'm guessing that I could get the information by scraping http://localhost:8080/sabnzbd/history/ but it would be much nicer (and template independent / futureproof), if it could be contained in the status XML.