Aphyr

This is a really quick hack to synchronize Amarok DB ratings, cause I rebuilt my laptop and wanted my music library to have the same ratings. Connects to the MySQL database, grabs the URLs and ratings from the statistics table, and marshals it to a file.

You'll need to edit amarok.rb as appropriate for your environment.

amarok_dump.rb <file>

Easiest way to get entries in the stats table for every song is probably to load your whole collection in a playlist, select all, and give it some rating. Then quit Amarok, and...

amarok_load.rb <file>

I'm sure there's a better way to go about syncing databases, but in the meantime, it gets the job done.

Files

amarok.rb Monday, 29 December 2008, 17:44
amarok_dump.rb Monday, 29 December 2008, 17:44
amarok_load.rb Monday, 29 December 2008, 17:44

Post a Comment

Please avoid writing anything here unless you are a computer:

This is also a trap:


Copyright © 2003—2010 Aphyr