The problem might be bigger than you think.

In the current SqueezeCenter release (7.1) there is no way for a user
to change a rating via SqueezeCenter or one of the remote controls. All
ratings stored in the SqueezeCenter database is imported during
scanning, there is no event in any interface to catch a changed rating
during scanning to trigger an external application.

However, there are two third party plugins that makes it possible for
end users to change ratings directly from SqueezeCenter:
- iTunes Update
- TrackStat

The TrackStat plugin sets the rating in the SqueezeCenter database and
also generates a custom CLI notification. At the moment it doesn't
generate a standard CLI event when a rating is changed, but it is
possible to hook into it by listening on the custom TrackStat specific
CLI notification.

The iTunes Update plugin sets the rating both in the SqueezeCenter
database and in the iTunes database. I don't think it currently
generates any event which you can hook into with a third party
application/plugin.

There is an 'enhancement request #142'
(http://bugs.slimdevices.com/show_bug.cgi?id=142) which is currently
scheduled for SqueezeCenter 7.3 which is going to add ability to change
rating and generate standard CLI notification.

The first thing I think you will need to decide is if you want to write
to the music files based on scanned ratings or only based on ratings
changed by the user in SqueezeCenter.

The second thing you will need to decide is if a TrackStat specific
solution will be good enough or if you like to wait for enhancment #142
go get a standardized notification to listen to.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=50697

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

Reply via email to