From e327cc8be366338c3ec98e4bf0122abe8be7cafe Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Sun, 24 Apr 2005 15:00:15 +0000 Subject: Fall back on "" 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 --- tools/songdb.pl | 2 ++ 1 file changed, 2 insertions(+) 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'} = "" if ($$id3{'ALBUM'} eq ""); # fall back on basename of the file if no title tag. my $base; ($base = $f) =~ s/\.\w+$//; -- cgit v1.1