summaryrefslogtreecommitdiffstats
path: root/tools/songdb.pl
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-10-26 14:26:37 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-10-26 14:26:37 +0000
commit4f3b9edd62867df30a2ae0dfde6a1bb48a94d081 (patch)
tree46884220dfb534a28a2d4367393c8bab4fd9df0e /tools/songdb.pl
parent94a5e70b140f039a160e84c82773011c790b15e0 (diff)
downloadrockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.tar.gz
rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.tar.bz2
rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.zip
Add dummy text if some tags are missing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5360 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/songdb.pl')
-rwxr-xr-xtools/songdb.pl4
1 files changed, 4 insertions, 0 deletions
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'} = "<no artist tag>" if ($$id3{'ARTIST'} eq "");
+ $$id3{'ALBUM'} = "<no album tag>" if ($$id3{'ALBUM'} eq "");
+ $$id3{'TITLE'} = "<no title tag>" if ($$id3{'TITLE'} eq "");
+
# prepend Artist name to handle duplicate album names from other
# artists
my $albumid = $id3->{'ALBUM'}."___".$id3->{'ARTIST'};