summaryrefslogtreecommitdiffstats
path: root/tools/songdb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/songdb.pl')
-rwxr-xr-xtools/songdb.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl
index daa35577a6..b7dc5ce538 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+$//;