summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-09-15 22:29:31 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-09-15 22:29:31 +0000
commitb0a601553759b9b19da84f02f94d3b373e3cc8d7 (patch)
tree88673cc6a394606bcb75a62a57e9aafa60ee9a81 /tools
parent21643dfda94846ac8bdad764f3cf27f07eb71eea (diff)
downloadrockbox-b0a601553759b9b19da84f02f94d3b373e3cc8d7.tar.gz
rockbox-b0a601553759b9b19da84f02f94d3b373e3cc8d7.tar.bz2
rockbox-b0a601553759b9b19da84f02f94d3b373e3cc8d7.zip
Updated to work with latest version of tagcache
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10954 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/songdb.pl19
1 files changed, 12 insertions, 7 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl
index 5f162433d4..a6d3b78c04 100755
--- a/tools/songdb.pl
+++ b/tools/songdb.pl
@@ -16,7 +16,7 @@ my $verbose;
my $help;
my $dirisalbum;
my $littleendian = 0;
-my $dbver = 0x54434804;
+my $dbver = 0x54434806;
# file data
my %entries;
@@ -411,23 +411,21 @@ for (sort keys %entries) {
}
if ($db) {
- # Artists
+ # tagcache index files
create_tagcache_index_file(0, 'ARTIST', 1);
- # Albums
create_tagcache_index_file(1, 'ALBUM', 1);
- # Genres
create_tagcache_index_file(2, 'GENRE', 1);
- # Titles
create_tagcache_index_file(3, 'TITLE', 0);
- # Filenames
create_tagcache_index_file(4, 'PATH', 0);
- # Composers
create_tagcache_index_file(5, 'COMPOSER', 1);
# Master index file
openfile $db ."_idx.tcd";
dump_tag_header(0);
+ # current serial
+ dumpint(0);
+
for (sort keys %entries) {
dumpint($entries{$_}->{'ARTIST_OFFSET'});
dumpint($entries{$_}->{'ALBUM_OFFSET'});
@@ -439,6 +437,13 @@ if ($db) {
dumpint($entries{$_}->{'TRACKNUM'});
dumpint($entries{$_}->{'BITRATE'});
dumpint($entries{$_}->{'SECS'});
+ # play count
+ dumpint(0);
+ # play time
+ dumpint(0);
+ # last played
+ dumpint(0);
+ # status flag
dumpint(0);
}