Phil Meyer;160290 Wrote:
> >None, it registers the number buttons that are used for setting
> ratings.
> >But as I said earlier it is enough if it registers anything in
> playlist
> >mode to stop anyone else to do the same.
> >
> Oh, I see - it's worse than I thought! I thought you were saying that
> you registered some function for some other add action. This
> Slimserver restriction seeems rather limiting.
>
> PhilThe slimserver implementation of addModeDefaultMapping looks as shown
below, as you see the second caller will exit in the first if statement
before any mapping has been registered.
Code:
--------------------
sub addModeDefaultMapping {
my ($mode, $mapRef) = @_;
if (exists $irMap{$defaultMapFile}{$mode}) {
# don't overwrite existing mappings
return;
}
if (ref($mapRef) eq 'HASH') {
$irMap{$defaultMapFile}{$mode} = $mapRef;
}
}
--------------------
--
erland
Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist),
'Custom Browse'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-custombrowse),'Custom
Scan'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-customscan)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=30360
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins