Skip to content

Commit

Permalink
fix for genre ' ' not ignored in 'has no genre' filter
Browse files Browse the repository at this point in the history
  • Loading branch information
squentin committed Jul 26, 2010
1 parent 400f618 commit ded7437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gmusicbrowser_tags.pm
Expand Up @@ -144,7 +144,9 @@ sub SetTags
tr/\x1D\x00//d for @$tag;
if ($n==::SONG_GENRE)
{ my %genres;
$genres{ucfirst $_}=undef for grep $_ ne '', @$tag;
@$tag= grep $_ ne '', @$tag;
next unless @$tag;
$genres{ucfirst $_}=undef for @$tag;
$$aref[$n]=join("\x00",sort keys %genres)."\x00";
next;
}
Expand Down

0 comments on commit ded7437

Please sign in to comment.