I'm not a subsonic mod or developer, but I am a coder.
This "should" help, but it'll require some manual intervention on your part!!
Download and install this little database viewing utility
http://sourceforge.net/projects/jdbview/
(Yes, I wrote it a long time ago

)
copy the file
hsqldb-1.8.0.7.jar
from /var/subsonic/jetty/2169/webapp/WEB-INF/lib
Into the folder you installed JDBView
Shutdown Subsonic!
And MAKE A COPY OF THE DIRECTORY
/var/subsonic/db
I repeat COPY THIS DIRECTORY SOMEWHERE!!
It's the Database files. If you mess up, at least you can restore the DB back to how it was.
Launch the JDBView application.
- Code: Select all
java -jar JDBView.jar
Or, in windows, you can double click the JDBView.jar file.
Select Menu Item
Database - Connect
Click the "HSQL-DB-File" node
On the right side, leave username and password as they are.
Enter the full path to the database in the "Directory" field
/var/subsonic/db
Enter the Database name
"subsonic"
in the "Database" field.
Click "Connect"
You "hopefully" just opened the database files.
You'll know, because you see a bunch of tabs labeled
sql1, sql2, sql3... etc.
If it failed, you'll see an error message in the "Output Log" tab.
Remember, we're not connecting to a DB Server, but rather opening the small database files up directly.
Now, the fun part, executing some SQL to fix your comment/rating issue.
To see a list of all your music file info enter this into the "sql1" tab and hit "Excecute"
- Code: Select all
select * from MUSIC_FILE_INFO
You'll see a long list of all your known music info, including comments and ratings.
Now, depending on your needs, you'll need to run some sql UPDATE commands to fix the changes you've made in your folder structure.
I can help with the commands you'd need, but I'll need to know more about what changes. Did you move ALL your music to a new root location? Or just a couple of artists? If you manage to execute the above query to list all your music files, the "id" and "path" values are the important columns.
When you are done, start subsonic back up.
Shane.