Index: Changelog6.html =================================================================== --- Changelog6.html (revision 10225) +++ Changelog6.html (working copy) @@ -62,6 +62,7 @@
  • #4270 - Server Information on SB - two items muddled up
  • #4281 - Mix do not work with accented characters in filenames and paths
  • #4291 - if you change the http or cli port, mdns doesn't update its advertisements
  • +
  • #4309 - Sort genres by name in Random Mix
  • Index: Plugins/RandomPlay/Plugin.pm =================================================================== --- Plugins/RandomPlay/Plugin.pm (revision 10225) +++ Plugins/RandomPlay/Plugin.pm (working copy) @@ -152,11 +152,11 @@ my $id = $genre->id; my $ena = 1; - if (grep { $_ eq $id } @exclude) { + if (grep { $_ eq $name } @exclude) { $ena = 0; } - $clientGenres{$id} = { + $clientGenres{$name} = { 'id' => $id, 'name' => $name, 'enabled' => $ena, @@ -819,9 +819,9 @@ my $genres = getGenres($client); # %$params will contain a key called genre_ for each ticked checkbox on the page - foreach my $genre (keys %{$params}) { + for my $genre (keys %{$genres}) { - if ($genre =~ s/^genre_//) { + if (!$params->{'genre_'.$genres->{$genre}->{'id'}}) { delete($genres->{$genre}); } }