From cec134f40928bb2bfa3a4f4ee68dc6e409e5237c Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Sat, 23 Apr 2005 15:25:21 +0000 Subject: [PATCH] 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 --- tools/songdb.pl | 4 ++-- 1 file 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 "___") { + if($id3->{'ALBUM'}."___".$id3->{'DIR'} ne "___") { 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