summaryrefslogtreecommitdiffstats
path: root/tools/songdb.pl
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-06-04 16:25:17 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-06-04 16:25:17 +0000
commit4b0823629af923ed867c7dd136364fcbc3bda2da (patch)
tree63a2c4bce0d8aa99c58df6d136e72f39222d1baf /tools/songdb.pl
parent74d5b57ab21134d3d329adc499e81ceb727e7136 (diff)
downloadrockbox-4b0823629af923ed867c7dd136364fcbc3bda2da.tar.gz
rockbox-4b0823629af923ed867c7dd136364fcbc3bda2da.tar.bz2
rockbox-4b0823629af923ed867c7dd136364fcbc3bda2da.zip
Database v3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6564 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/songdb.pl')
-rwxr-xr-xtools/songdb.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl
index 8657e88b52..8a4746b8be 100755
--- a/tools/songdb.pl
+++ b/tools/songdb.pl
@@ -405,7 +405,7 @@ if (!scalar keys %entries) {
}
if ($db) {
- my $songentrysize = $maxsonglen + 12 + $maxgenrelen+ 4;
+ my $songentrysize = $maxsonglen + 12 + $maxgenrelen+ 12;
my $albumentrysize = $maxalbumlen + 4 + $maxsongperalbum*4;
my $artistentrysize = $maxartistlen + $maxalbumsperartist*4;
my $fileentrysize = $maxfilelen + 12;
@@ -583,6 +583,9 @@ if ($db) {
print DB $str; #genre
dumpshort(-1);
dumpshort($id3->{'YEAR'});
+ dumpint(-1);
+ dumpshort($id3->{'TRACKNUM'});
+ dumpshort(-1);
}
#### TABLE of file names ###