kdf Wrote: > 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. > I think the user interaction should be handled by slimserver when the user selects to set a rating, slimserver should then set it in the internal slimserver database and post a command/notification that the plugin can subscribe on. When the plugin receives the notification it can set the rating in MusicMagic, iTunes or some other external application.
kdf Wrote: > > > > > 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. > Maybe I was unclear, I just tried to say that there is currently no way for the user to set the rating using standard slimserver. The TrackStat and iTunesUpdate plugin already today uses updateOrCreate to set the rating, so the support is there internaly its just not available in the user interface yet. kdf Wrote: > > > 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. > The problem is that it would require third party software, I would prefer if we had a solution to support ratings without third party software. I can't use iTunes today since I run slimserver on linux and iTunes on a completely different computer on Windows. Another problem with iTunes is that it does not support FLAC files which also means that it can't store rating for flac files. MusicMagic is also a problem since it doesn't work correctly with unicode characters on linux yet. kdf Wrote: > 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. > I think the url won't be enough because if I change a filename the url will change during rescan and the rating would be lost. But url together with musicbrainzid should be good enough, thats what TrackStat uses today for storing statistics. kdf Wrote: > > 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). > I would love to be able to insert info in the songinfo page both in web ui and in SqueezeBox ui. This would not just be useful for rating but also for plugins such as Biography and AlbumReview and other plugins that show info related to a specific song. -- erland Erland Isaksson 'My homepage' (http://erland.homeip.net) 'My download page' (http://erland.homeip.net/download) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=23448 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
