On 29-Apr-06, at 10:22 AM, erland wrote:

MusicMagic plugin
=================
- Implements import of ratings from MusicMagic during rescan
- Ratings are stored in the standard slimserver tracks table
- Cannot set ratings (besides setting them in MusicMagic of course)

musicmagic API does allow setting. it just needs some mechanism for implementing it. do you do it from the plugin, or update as part of slimserver. I'm not sure yet.


Slimserver
==========
- Cannot set rating

I don't believe anything is preventing this. call $ds->updateOrCreate on the track with the new rating supplied in the args. Search the code and you should see lots of examples.

- Ratings is shown in SongInfo menu on SqueezeBox and web interface

wonder if RATING might work in titleformat prefs? in theory any track field should parse.

My opinion is that some important points are:
=============================================
1. Ratings must survive a rescan
2. Ratings must be possible to backup
exporting back to iTunes/musicmagic, etc ought to accomplish that.



Now, what is your opionion regarding handling of ratings and do you
have any suggestion how it should be handled ?

the plugin route would be my preferred way, at least until the above gets worked out. No reason you couldn't dump a Storable archive of ratings -> url maps for backups, and import after rescan. Moving to mysql, as slimserver will be doing for 6.5 might make the schema flexible enough to have a separate rating table that doesn't get wiped but some other method to dump out ratings would still be useful.

with current implementation, there isn't an easy way to set rating in web ui. From a plugin, you could create a "mixer" link such as those used for MusicMagic and Moodlogic. You could hijack this to go to a rating page for the given song/artist/etc. This way the hooks are already there, and you don't have to compaign for each skin to make changes (at least for those that DO support mixers)

i suppose another option would be to have an insertable block in the songinfo page where rating is currently displayed. For the default case, it could stay as text (or maybe simple graphics) but allow a plugin on alter that with html (such as making it a link to adjust ratings, etc).

-k

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to