[Muine] Muine database structure



Hi,

I'm trying to write a Python program to query the songs.db and covers.db
databases.  Since these are gdbm files, I've had no problems opening
them. 

Could you help me learn how to parse them, though? 

Covers.db seems to use a paths for keys, and have the image as a value.
How can I decode this?

Songs.db seems to use paths for keys again, and have lots of information
in the value, including song title, album and artist.  Can you tell me
what the other bytes are, as in the example below?

'\x10\x00\x00\x00The Convalescent\x00\x00\x00\x00\x01\x00\x00\x00\x16
\x00\x00\x00Manic Street Preachers\x00\x00\x00\x00\x00\x00\x0f\x00\x00
\x00Know Your Enemy\x00\x0c\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff
\x04\x00\x00\x002001\x00\x00\x00\x00b\x01\x00\x00\x84]\xeeB\x0b\x00\x00
\x000.000000000\x00\x0b\x00\x00\x000.000000000\x00'

Perhaps I'm barking up the wrong tree using python here?  Songs.db is
easy enough to strip of all those hexadecimals (I assume that's what the
\x10 business is?) but if the Covers.db values are GDKPixbuf objects or
something then I wouldn't really know what to use - I'm a bit rubbish on
C/C#!

Thanks in advance for your help!

Best wishes,
Matt Kay




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]