starcat;420230 Wrote: > If I want to set the rating (0..5) for the currently played track, do I > have to pass the trackname or trackid? Just address the playerID and > rating, it should take the currently played track by that playerID, is > this possible? Thanks much!
If you're using KidsPlay, definitely see the thread "CLI-commands". If not, perhaps you should be. :-) Seriously, though, KidsPlay might help with this. It has an (undocumented) CLI that is designed to let a CLI application invoke a KidsPlay macro, so you could define a KP macro like JVC button 1 as "trackstat setrating {CURRENT_TRACK_ID} 1", and have your CLI client tell KidsPlay to execute the JVC button 1 macro for a given player. KidsPlay would look up the track ID and call the trackstat CLI command. That's nowhere near as clean as tweaking TrackStat, but let me know if that sounds like something you'd need or want, so I can verify that KidsPlay does behave as I described. This is a feature I added to facilitate better support for Radio and Touch, but haven't started using yet. -- peterw http://www.tux.org/~peterw/ Free plugins: 'AllQuiet' (http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay' (http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver' (http://www.tux.org/~peterw/slim/BlankSaver.html) 'ContextMenu' (http://www.tux.org/~peterw/slim/ContextMenu.html) 'DenonSerial' (http://www.tux.org/~peterw/slim/DenonSerial.html) 'FuzzyTime' (http://www.tux.org/~peterw/slim/FuzzyTime.html) 'KidsPlay' (http://www.tux.org/~peterw/slim/KidsPlay.html) 'KitchenTimer' (http://www.tux.org/~peterw/slim/KitchenTimer.html) 'PlayLog' (http://www.tux.org/~peterw/slim/PlayLog.html) 'PowerCenter/BottleRocket' (http://www.tux.org/~peterw/slim/PowerCenter.html) 'SaverSwitcher' (http://www.tux.org/~peterw/slim/SaverSwitcher.html) 'SettingsManager' (http://www.tux.org/~peterw/slim/SettingsManager.html) 'SleepFade' (http://www.tux.org/~peterw/slim/SleepFade.html) 'StatusFirst' (http://www.tux.org/~peterw/slim/StatusFirst.html) 'SyncOptions' (http://www.tux.org/~peterw/slim/SyncOptions.html) 'VolumeLock' (http://www.tux.org/~peterw/slim/VolumeLock.html) ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=62934 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins