PDA

View Full Version : slimserver.db



Howard Durdle
2004-01-13, 03:32
Hi all,

Is slimserver.db in a slim proprietary format?

Now that I have this list that the slimserver will keep up to date, I'd love
to have access to it via ODBC - is this possible?

Ideally I want to expose my mp3 library to a wap interface - so I can query
my collection from my mobile phone. I've built a wap interface, but in my
tests I was using ODBC to talk to an old database of my music I built a long
time ago in Access. Ideally I'd like a direct connection to the
slimserver.db within ASP via ADO.

Or am I going to have to add "perl hacker" to my list of skills? :)


Howard

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 02/01/2004

Richard Purdie
2004-01-13, 04:25
> Is slimserver.db in a slim proprietary format?

It's in perl's Storable format and is a simple dump to disk of some data
structures.

> Now that I have this list that the slimserver will keep up to date, I'd
love
> to have access to it via ODBC - is this possible?

I'd say no I'm afraid. The whole point of this file is to allow the server
to dump and reload it's data quickly and effectively and as such it's a
binary format not useable for such things. There have been requests for
access to the data and I think the current feeling is we should export some
kind of iTunes like XML file. That is a completely separate issue however.

> Or am I going to have to add "perl hacker" to my list of skills? :)

Probably :)

You could write a small perl program that loaded slimserver.db with Storable
and then exported it to a format of your choice :).

Such functionality could then be added to Slim Server working on the in
memory data in due course. See Info.pm for examples of how to use the data
structures.

RP

dean
2004-01-13, 09:10
One of the things on our to-do list is to export the music library
information in the same XML format that iTunes uses, which the
SlimServer can already import. That would probably be a good way to go
for you.

-dean

On Jan 13, 2004, at 3:25 AM, Richard Purdie wrote:

>> Is slimserver.db in a slim proprietary format?
>
> It's in perl's Storable format and is a simple dump to disk of some
> data
> structures.
>
>> Now that I have this list that the slimserver will keep up to date,
>> I'd
> love
>> to have access to it via ODBC - is this possible?
>
> I'd say no I'm afraid. The whole point of this file is to allow the
> server
> to dump and reload it's data quickly and effectively and as such it's a
> binary format not useable for such things. There have been requests for
> access to the data and I think the current feeling is we should export
> some
> kind of iTunes like XML file. That is a completely separate issue
> however.
>
>> Or am I going to have to add "perl hacker" to my list of skills? :)
>
> Probably :)
>
> You could write a small perl program that loaded slimserver.db with
> Storable
> and then exported it to a format of your choice :).
>
> Such functionality could then be added to Slim Server working on the in
> memory data in due course. See Info.pm for examples of how to use the
> data
> structures.
>
> RP
>
>
>
>