Skip to content
Permalink
Browse files
fix "0" appearing in "artists" tab for unknown artists
  • Loading branch information
squentin committed Mar 30, 2015
1 parent 5c0fd1b commit c1b5c93d7c15a710fe3389268513cededaf95bbe
Showing with 2 additions and 2 deletions.
  1. +2 −2 gmusicbrowser_songs.pm
@@ -190,8 +190,8 @@ our %timespan_menu=
push @ids,$id;
}
#_# = @ids==1 ? $ids[0] :
@ids==0 ? 0 :
(___group{join(" ",map sprintf("%x",$_),@ids)}||= \@ids);',
@ids==0 ? 1 :
(___group{join(" ",map sprintf("%x",$_),@ids)}||= \@ids);', # 1 for @ids==0 is the special gid for unknown artists defined in artist's init
'filter:m' => '(ref #_# ? (.!!. grep __#mainfield#_name[$_] =~ m"#VAL#", @{#_#}) : (__#mainfield#_name[#_#] .=~. m"#VAL#"))',
'filter:mi' => '(ref #_# ? (.!!. grep __#mainfield#_iname[$_] =~ m"#VAL#"i, @{#_#}) : (__#mainfield#_iname[#_#] .=~. m"#VAL#"i))',
'filter:s' => '(ref #_# ? (.!!. grep index( __#mainfield#_name[$_],"#VAL#") != -1, @{#_#}) : (index(__#mainfield#_name[#_#],"#VAL#") .!=. -1))',

0 comments on commit c1b5c93

Please sign in to comment.