Index: Slim/Buttons/BrowseID3.pm =================================================================== --- Slim/Buttons/BrowseID3.pm (revision 3150) +++ Slim/Buttons/BrowseID3.pm (working copy) @@ -657,6 +657,7 @@ my ($line1, $line2, $overlay1, $overlay2); my $songlist = 0; + my $albumlist = 0; my $genre = _deRef(selection($client,'curgenre')); my $artist = _deRef(selection($client,'curartist')); @@ -672,6 +673,7 @@ $line1 = $client->string('ARTISTS'); } elsif ($genre eq '*' && $artist eq '*' && !defined($album)) { $line1 = $client->string('ALBUMS'); + $albumlist = 1; } elsif ($genre eq '*' && $artist eq '*' && $album eq '*' && !defined($song)) { $line1 = $client->string('SONGS'); $songlist = 1; @@ -680,6 +682,7 @@ $songlist = 1; } elsif ($genre eq '*' && $artist eq '*' && !specified($album)) { $line1 = $client->string('ALBUM'.$plural.'MATCHING') . " \"" . searchTerm($album) . "\""; + $albumlist = 1; } elsif ($genre eq '*' && $artist eq '*' && specified($album) && !defined($song)) { $line1 = $album; $songlist = 1; @@ -689,8 +692,10 @@ $line1 = $genre; } elsif ($genre eq '*' && specified($artist) && !defined($album)) { $line1 = $artist; + $albumlist = 1; } elsif (specified($genre) && specified($artist) && !defined($album)) { $line1 = $genre.'/'.$artist; + $albumlist = 1; } elsif (specified($genre) && specified($artist) && specified($album) && !defined($song)) { $line1 = $artist.'/'.$album; $songlist = 1; @@ -765,6 +770,14 @@ } $overlay2 = Slim::Display::Display::symbol('rightarrow'); + + if (defined $obj && ref $obj && $albumlist && Slim::Utils::Prefs::get('showYear')) { + my ($track) = $obj->tracks(); + my $year = $track->year(); + if (defined($year) && $year && $year > 0) { + $line2 .= sprintf(" (%d)", $year); + } + } } }