summaryrefslogtreecommitdiffstats
path: root/tools/songdb.pl
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-24 15:00:15 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-24 15:00:15 +0000
commite327cc8be366338c3ec98e4bf0122abe8be7cafe (patch)
tree2059f75cfd542cc329caab90d52e9e3e8341c58d /tools/songdb.pl
parent50b656ff0cbe94d567755e15895804d55f29ed26 (diff)
downloadrockbox-e327cc8be366338c3ec98e4bf0122abe8be7cafe.tar.gz
rockbox-e327cc8be366338c3ec98e4bf0122abe8be7cafe.tar.bz2
rockbox-e327cc8be366338c3ec98e4bf0122abe8be7cafe.zip
Fall back on "<no album tag>" if the file is in the root of the player and doesn't have an album tag...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6338 a1c6a512-1295-4272-9138-f99709370657
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+$//;