afriend wrote: 
> It does "mimic" the TrackStat API (as the linked code shows) in all
> except, *of course*, the plugin name: ['ratingslight', 'setrating',
> '_trackid', '_rating'].

OK, in git/master (for 2.1.0) I have added (untested) support for this.
To detect the plugin I call -["can", "trackstat", "getrating", "?"]- for
TrackStat. If this returns "_can:1" then TrackStat is used. Otherwise I
call -["can", "ratingslight", "getrating", "?"]- to check for
ratingslight. This also needs to return "_can:1" If it does, I then call
-["pref", "plugin.ratingslight:rating_10scale", "?"]- to check the
rating scale. This should return 1 if 10 is max rating, otherwise 5 is
assumed.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to