diff --git a/tools/songdb.pl b/tools/songdb.pl index fb0118d7e4..d4b3989e01 100755 --- a/tools/songdb.pl +++ b/tools/songdb.pl @@ -129,6 +129,10 @@ sub dodir { $id3->{'FILE'}="$dir/$f"; # store file name + $$id3{'ARTIST'} = "" if ($$id3{'ARTIST'} eq ""); + $$id3{'ALBUM'} = "" if ($$id3{'ALBUM'} eq ""); + $$id3{'TITLE'} = "" if ($$id3{'TITLE'} eq ""); + # prepend Artist name to handle duplicate album names from other # artists my $albumid = $id3->{'ALBUM'}."___".$id3->{'ARTIST'};