Dan Sully Wrote:
> So, that Pref is not part of SlimServer by default. It seems that
> Infrant
> added it. I'd love to know what they are doing.
They manually added a pref and the following code in Pages.pm (I think
someone posted this in the forums):
Code:
--------------------
#JM * The user now has the option to turn off statistics, as this is quite
expensive.
if (Slim::Utils::Prefs::get('enableStatistics')) {
$params->{'song_count'} = _lcPlural($ds->count('track', $find),
'SONG', 'SONGS');
$params->{'album_count'} = _lcPlural($ds->count('album', $find),
'ALBUM', 'ALBUMS');
$params->{'artist_count'} = _lcPlural($ds->count('contributor', $find),
'ARTIST', 'ARTISTS');
} else {
$params->{'song_count'} = 0;
$params->{'album_count'} = 0;
$params->{'artist_count'} = 0;
}
#JM * End
--------------------
Their modified slimserver is available for download:
http://infrant.com/gpl.htm
--
mherger
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=18527
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss