Since there wasn't an addon to show SABnzbd stats in mIRC, I decided to build something my own.
SABnzbd mIRC Stats v0.1
It is a basic script which does what it has to do. It isn't perfect, but it works. My main purpose was to build it for myself, and share it to everyone who wants it.
The mIRC script is based on the WhatPulse mIRC Script 2.
I couldn't find a proper way to let mIRC handle SABnzb's XML output (Every job had the same field names). Therefor you need one extra step in the form of a PHP script.
This PHP script is also included. The PHP script opens the API, requests the XML file, and then rewrites the XML file. You can use XAMPP for this if you don't have a web server with PHP support.
More detailed explanation in the readme.txt.
Read it first, since you need to adjust a few values first.
In mIRC, type /load -rs /path/to/sabnzbd.mrc
Run the initialization commands, it will fetch the XML file.
Manual commands are: /sabnzbd_update and /sabnzbd_show.
You can also use the menu: SABnzbd Stats
This fetches the new XML file manually
-Show in ...
Show the stats into the current channel/query
Configure the number of lines/items (0-10)
0: Only general stats
1-10: General stats + x items
Default value: 3 items
I'm not an experienced scripter, I needed a lot of help with the PHP script and with the mIRC script itself Thanks again Rico and KompjoeFriek!
Since the basics are working fine for me, I'm not planning any future releases.
The community however, is free to improve the script on one condition: Post your changes back to this topic, so everybody can use the improvements!
Of course this is something which can't be checked, but please, share your changes.
Download the file from one of the following sites:
Mirror 1 | Mirror 2 | Mirror 3 | Mirror 4
Got a program that plays well with SABnzbd? Share it here!
3 posts • Page 1 of 1