summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-23 15:25:21 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-23 15:25:21 +0000
commitcec134f40928bb2bfa3a4f4ee68dc6e409e5237c (patch)
treef6fca541887712522633b8632bd4c0eb5327ab54 /tools
parente4e1f2c0dd420484b1038d3d33307d18f8925e03 (diff)
Song -> Album links were broken.
someone forgot to update all the $ALBUM___$ARTIST to $ALBUM___$DIR. stumbled across it while extending it for version 2 of the database. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/songdb.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl
index 987fb61972..844a4d8727 100755
--- a/tools/songdb.pl
+++ b/tools/songdb.pl
@@ -185,7 +185,7 @@ sub dodir {
$$id3{'DIR'} = $dir;
my $albumid = $id3->{'ALBUM'}."___".$$id3{'DIR'};
- if($id3->{'ALBUM'}."___".$id3->{'ARTIST'} ne "<no album tag>___<no artist tag>") {
+ if($id3->{'ALBUM'}."___".$id3->{'DIR'} ne "<no album tag>___<no artist tag>") {
my $num = ++$albums{$albumid};
if($num > $maxsongperalbum) {
$maxsongperalbum = $num;
@@ -385,7 +385,7 @@ if ($db) {
my $a = $artistcount{$id3->{'ARTIST'}} * $artistentrysize;
dumpint($a + $artistindex); # pointer to artist of this song
- $a = $albumcount{"$$id3{ALBUM}___$$id3{ARTIST}"} * $albumentrysize;
+ $a = $albumcount{"$$id3{ALBUM}___$$id3{DIR}"} * $albumentrysize;
dumpint($a + $albumindex); # pointer to album of this song
# pointer to filename of this song