philippe_44 wrote: 
> But if you want to try by yourself, edit the file
> /usr/share/perl5/Slim/Web/Settings/Player/Basic.pm make a cooand change
> the red by the blue. The restart LMS
> 
> > 
Code:
--------------------
  >   > 
  > sub handler {
  > my ($class, $client, $paramRef) = @_;
  > 
  > if (!defined $client) {
  > return $class->SUPER::handler($client, $paramRef);
  > }
  > 
  > # reset all client preferences to factory defaults
  > if ($paramRef->{resetprefs}) {
  > $client->resetPrefs();
  > }
  > 
  > # array prefs handled by this handler not handler::SUPER
  > my @prefs = ();
  > 
  > if (defined $client && $client->isPlayer() && 
!$client->display->isa('Slim::Display::NoDisplay')) {
  > 
  > push @prefs, qw(titleFormat playingDisplayModes);
  > 
  > if ($client->display->isa('Slim::Display::Transporter')) {
  > 
  > push @prefs, qw(visualModes);
  > }
  > }
  > 
  > # Bug 8069, show title format pref for HTTP clients
  > if ( $client->isa('Slim::Player::HTTP') ) {
  > push @prefs, 'titleFormat';
  > }
  > 
  > if ($paramRef->{'saveSettings'}) {
  > 
  > for my $pref (@prefs) {
  > 
  > my $i = 0;
  > my @array;
  > 
  > while (defined $paramRef->{'pref_'.$pref.$i}) {
  > 
  > if ($paramRef->{'pref_'.$pref.$i} ne "-1") {push @array, 
$paramRef->{'pref_'.$pref.$i};}
  > $i++;
  > }
  > 
  > $prefs->client($client)->set($pref, \@array);
  > }
  > 
  > #if ($client->isPlayer && $client->isa('Slim::Player::SqueezePlay') 
&& defined $paramRef->{'defeatDestructiveTouchToPlay'}) {
  > if ($client->isPlayer && defined 
$paramRef->{'defeatDestructiveTouchToPlay'}) {
  > $prefs->client($client)->set('defeatDestructiveTouchToPlay', 
$paramRef->{'defeatDestructiveTouchToPlay'});
  > }
  > }
  > 
  > $paramRef->{'prefs'}->{'pref_playername'} ||= $client->name;
  > 
  > for my $pref (@prefs) {
  > $paramRef->{'prefs'}->{'pref_'.$pref} = [ @{ 
$prefs->client($client)->get($pref) }, "-1" ];
  > }
  > 
  > $paramRef->{'titleFormatOptions'}  = hashOfPrefs('titleFormat');
  > 
  > if ($client && !$client->display->isa('Slim::Display::NoDisplay')) {
  > $paramRef->{'playingDisplayOptions'} = getPlayingDisplayModes($client);
  > $paramRef->{'visualModeOptions'}     = getVisualModes($client);
  > $paramRef->{'saveropts'}             = 
Slim::Buttons::Common::validSavers($client);
  > }
  > 
  > $paramRef->{'playerinfo'} = Slim::Menu::SystemInfo::infoCurrentPlayer( 
$client );
  > $paramRef->{'playerinfo'} = 
$paramRef->{'playerinfo'}->{web}->{items};
  > $paramRef->{'macaddress'} = $client->macaddress;
  > 
  > $paramRef->{'playericon'} = $class->getPlayerIcon($client,$paramRef);
  > 
  > #if ($client->isPlayer && $client->isa('Slim::Player::SqueezePlay')) {
  > if ($client->isPlayer) {
  > $paramRef->{'defeatDestructiveTouchToPlay'} = 
$prefs->client($client)->get('defeatDestructiveTouchToPlay');
  > $paramRef->{'defeatDestructiveTouchToPlay'} = 
$prefs->get('defeatDestructiveTouchToPlay') unless defined 
$paramRef->{'defeatDestructiveTouchToPlay'};
  > }
  > 
  > $paramRef->{'radioNeedsFakeVersion'} = $client->model(1) eq 'baby' && 
Slim::Networking::Discovery->needsFakeVersion;
  > 
  > my $page = $class->SUPER::handler($client, $paramRef);
  > 
  > if ($client && $client->display->isa('Slim::Display::Transporter')) {
  > Slim::Buttons::Common::updateScreen2Mode($client);
  > }
  > 
  > return $page;
  > }
  > 
--------------------
> > 
> 
> All you players should now display the DDTTP options

I was just about to try this then noticed my basic.pm file contents are
different. Yours has numerous "&gt" and mine has none.


+-------------------------------------------------------------------+
|Filename: Basic.pm                                                 |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=32677|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=108558

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to