diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/songdb.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl index daa3557..b7dc5ce 100755 --- a/tools/songdb.pl +++ b/tools/songdb.pl @@ -181,6 +181,8 @@ sub dodir { # Fall back on the directory name (not full path dirname), # if no album tag $$id3{'ALBUM'} = (split m[/], $dir)[-1] if ($$id3{'ALBUM'} eq ""); + #if that doesn't work, fall back. + $$id3{'ALBUM'} = "<no album tag>" if ($$id3{'ALBUM'} eq ""); # fall back on basename of the file if no title tag. my $base; ($base = $f) =~ s/\.\w+$//; |