Code: Select all
#!/bin/bash
OPTIONS="-hi --af3 --rgn 000000FF" # Define abgx360 Parameters
/usr/local/bin/abgx360 $OPTIONS --dir "$1" 2>/dev/null | sed 's/file\:\/\/\/\/home\/xbmc\/\.abgx360\//file\:\/\/\/\/\/HTPC\/XBMC\/.abgx360\//' | tee -a "$1"/abgx360.html
The second sed part is to rename the paths to the images (abgx can extract an img from the game iso and display it in html) i have my users home folder shared as //htpc/XBMC (the user is xbmc). This part can be removed if your not interested in that image. Somone better with regex, could probably clean that up a bit.
And perhaps most of all, if you make a small change to the SABnzbd code you can view the html through the web interface.
File: interface.py (usually in /usr/share/sabnzbdplus/sabnzbd)
line 2304 (roughly)
''' % (name, name, escape(msg))
if you change to:
''' % (name, name, msg)
it will show the html. This could cause other problems with script output though, use at your own risk. But since this is the only script i really view the output for, I didnt care.
Also i had to remove the tags just above that line, otherwise there was incorrect spacing.
I hope somone might be interested in this also....