mrMuppet;502862 Wrote: 
> 
> Perhaps you can tell me whats easier to handle in this case: perl or
> lua -i would have to learn both of them.
> 
It depends, I would personally recommend perl because there are more
people here that can help you with perl issues compared to lua issues.

Start with an existing plugin and modify it to your needs, for example
the "Removed Played Songs" plugin which is fairly small:
http://www.koldware.com/SlimStuff/RemovePlayedSongs-2.3.1.zip

If you do it in perl you will need to:
1. Implement a new JSON command (through addDispatch) which doesn't
require track_id
2. When the command is called with a rating, you look up the currently
playing song on the player and call the TrackStat setrating command with
the track_id.

After this, you can use KidsPlay to redefine the preset buttons so they
issue your command which doesn't need the track_id.

If you haven't done any kind of programming before it could be hard,
but give it a try if you feel that you have the time and want to learn.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher 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=73538

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

Reply via email to