Help with script to delete completed history
Posted: March 19th, 2012, 2:16 am
Hi all,
I need some help with a script that can delete the history (the same as if you were to open the web ui and click 'delete completed").
I currently have script set up that runs after the queue is finished. The script grabs the data from the history rss feed (http://localhost:8080/sabnzbd/rss?mode=history) and dumps it as an xml file on my desktop. - basically a log of what has been downloaded during the day. ( I didn't write this script I found it on the net - so don't ask me how it does what it does).
This allows me to come home, open the file sitting on the desktop and see exactly what has happened during the day.
The issue is - unless the history is deleted after reading the log, all of the history from this log will be included in the next history log since it is still sitting in sab's history.
I'm looking for something that I can run after I have read the log (it would be launched manually by a key combination) that would delete sab's history and then delete the xml from the desktop..
So basically I come home, read the log on the desktop, close the log, and then hit a key combo which launches the script which clears the history and deletes the log from the desktop.
Any help would be great.
Thanks, Ash
I need some help with a script that can delete the history (the same as if you were to open the web ui and click 'delete completed").
I currently have script set up that runs after the queue is finished. The script grabs the data from the history rss feed (http://localhost:8080/sabnzbd/rss?mode=history) and dumps it as an xml file on my desktop. - basically a log of what has been downloaded during the day. ( I didn't write this script I found it on the net - so don't ask me how it does what it does).
This allows me to come home, open the file sitting on the desktop and see exactly what has happened during the day.
The issue is - unless the history is deleted after reading the log, all of the history from this log will be included in the next history log since it is still sitting in sab's history.
I'm looking for something that I can run after I have read the log (it would be launched manually by a key combination) that would delete sab's history and then delete the xml from the desktop..
So basically I come home, read the log on the desktop, close the log, and then hit a key combo which launches the script which clears the history and deletes the log from the desktop.
Any help would be great.
Thanks, Ash