It's definitely doable, but you'll need to install and configure HSQLDB, which is the relational database that Subsonic uses on the backend.
Installing HSQLDB is probably a bit beyond the scope of this forum, but here are some links to get you going.
Main HSQLDB website:
http://hsqldb.org/
Latest download:
http://sourceforge.net/projects/hsqldb/ ... p/download
You'll want to get that installed, and a connection pointed at the Subsonic database, which is located here: /var/subsonic/db/subsonic.data
Then create a textfile containing your SQL code in, say,
/home/andyirwin/mostplayed.sql
You can extract the data to a textfile like so, automating this as you see fit with a cron job:
- Code: Select all
java -jar $HSQLDB_HOME/lib/hsqldb.jar urlid /home/andyirwin/mostplayed.sql > /home/andyirwin/mostplayedresults.txt 2>&1
Let us know how this goes if you wind up pursuing it.
Regards,
Supra92