On 30-Aug-06, at 1:30 AM, kyleki wrote:
Code:
--------------------
'0.hold' => sub {
Plugins::TrackStat::Plugin::saveRatingsForCurrentlyPlaying(shift,
undef, 0); }
--------------------
Unfortunately, it appears that the '0.hold' button is not being caught
in the AlarmPlugin
for some reason.
It doesn't work that way. 0.hold is a button, not a function.
what you want to do is override the playFavorite function:
'playFavorite' => sub {
Plugins::TrackStat::Plugin::saveRatingsForCurrentlyPlaying($_[0],
undef, $_[2]); }
The buttonarg should be the third argument, so you can use just the one
mapping and let the button go through with array index 2.
-kdf
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins