kdf;131784 Wrote: 
> If it is written to have a 'saveRating' function, then you  
> can use:
> 
> 0.hold = modeFunction_TrackStat->saveRating_0
> 
> Of course, this varies depending on the naming of the mode.  If they  
> are functions that are only added to the playlist mode, then
> 
> 0.hold = modeFunction_playlist->saveRating_0
> 
> might do it.
I feel like I'm getting really close now, but I still don't have
it working quite yet.  I've replaced line 314
('numberScroll'     => sub { snooze(shift); },) with:

'0.hold' => 'modeFunction_playlist->saveRating_0',
'1.hold' => 'modeFunction_playlist->saveRating_1',
'2.hold' => 'modeFunction_playlist->saveRating_2',
'3.hold' => 'modeFunction_playlist->saveRating_3',
'4.hold' => 'modeFunction_playlist->saveRating_4',
'5.hold' => 'modeFunction_playlist->saveRating_5',

Holding any of these number buttons is still being forwarded to
the Favorites plugin (feature?).  I've also tried the following
variations with the same results:

'0.hold' => 'modeFunction_TrackStat->saveRating_0'
'0.hold' => 'modeFunction_PLUGIN.TrackStat->saveRating_0'
'0.hold' => 'modeFunction_PLUGIN.TrackStat.Choice->saveRating_0'

I've noticed that the saveRating method is in a separate
Storage.pm file within the TrackStat directory which is included
in the Plugin.pm file.  There are other references to this method
using this syntax:

Plugins::TrackStat::Storage::saveRating($url,undef,$track,$rating);

Maybe I need to reference this function differently?

erland, might you be able to give a little insight in how this
might be accomplished (if at all)?

Thanks again for all your help KDF.  I'm learning a great deal
through your efforts.
- Kyle


-- 
kyleki
------------------------------------------------------------------------
kyleki's Profile: http://forums.slimdevices.com/member.php?userid=2510
View this thread: http://forums.slimdevices.com/showthread.php?t=26793

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

Reply via email to