forked from len0rd/rockbox
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
This commit is contained in:
parent
e4e1f2c0dd
commit
cec134f409
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ sub dodir {
|
||||||
$$id3{'DIR'} = $dir;
|
$$id3{'DIR'} = $dir;
|
||||||
my $albumid = $id3->{'ALBUM'}."___".$$id3{'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};
|
my $num = ++$albums{$albumid};
|
||||||
if($num > $maxsongperalbum) {
|
if($num > $maxsongperalbum) {
|
||||||
$maxsongperalbum = $num;
|
$maxsongperalbum = $num;
|
||||||
|
@ -385,7 +385,7 @@ if ($db) {
|
||||||
my $a = $artistcount{$id3->{'ARTIST'}} * $artistentrysize;
|
my $a = $artistcount{$id3->{'ARTIST'}} * $artistentrysize;
|
||||||
dumpint($a + $artistindex); # pointer to artist of this song
|
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
|
dumpint($a + $albumindex); # pointer to album of this song
|
||||||
|
|
||||||
# pointer to filename of this song
|
# pointer to filename of this song
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue