diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2004-10-26 14:26:37 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2004-10-26 14:26:37 +0000 |
| commit | 4f3b9edd62867df30a2ae0dfde6a1bb48a94d081 (patch) | |
| tree | 46884220dfb534a28a2d4367393c8bab4fd9df0e | |
| parent | 94a5e70b140f039a160e84c82773011c790b15e0 (diff) | |
| download | rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.zip rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.tar.gz rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.tar.bz2 rockbox-4f3b9edd62867df30a2ae0dfde6a1bb48a94d081.tar.xz | |
Add dummy text if some tags are missing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5360 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | tools/songdb.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl index fb0118d..d4b3989 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'}; |