Re: [Muine] muine database



Hey,

If you want to not batch load all cover images at once you'll have to
write your own loading code .. muine will always batch load so sharing
that code wouldn't make much sense .. basically all you need is db.c and
you need to know the db format.  The covers db format is not too likely
to change (but it might!), so you should be fine.  Detecting whether
muine is installed shouldnt be too hard, I mean, just check whether
~/.gnome2/muine/covers.db exists.

Having a library loading them into memory once would be more trouble
than it's worth, imho, and it would have a negative impact on muine's
performance. (Having to share the data through some IPC mechanism .. )

One random idea I got was that you could do something like this: See if
covers.db is there, if so, use it, and then check amazon for any missing
images or all images if covers.db doesn't exist.

HTH,

Jorn

On Sun, 2004-06-13 at 14:01 +0100, Jeremy Wells wrote:
> What I've done so far is to take CoverDatabase.cs and modify it slightly
> to remove references to other muine classes. Then just using libmuine I
> can get to the cover pictures. This works quite well so far, but for a
> few problems.
> 
> Its not that economical for my program to load all the covers into
> memory like muine does as it only operates in one directory at a time.
> Saying that, it doesn't actually take that much time or memory for my
> collection of music, but mine is not all well tagged (thus the reason
> for writing a tagger) and I similar size well tagged collection might
> have many more covers.
> 
> I'll need my program to be able to detect if muine is installed before
> it can use it to view the album covers.
> 
> Maybe it would be possible to split muine into an application and a C#
> library where the library deals with the song database and cover
> downloads and any application could use it. Would it be possible to have
> a library that can load all covers into memory once for use from
> anywhere, or is that silly?
> 
> Jeremy
> 
> On Sun, 2004-06-13 at 11:20, Jorn Baayen wrote:
> > Yea, it is just a gdbm file.  But I would recommend against using it
> > directly, as the format might change at anytime.  However, an "Import
> > album cover images from Muine" function would be very cool.
> > 
> > Jorn
> > 
> > On Wed, 2004-06-09 at 03:16 +0100, Jeremy Wells wrote:
> > > Is it possible to connect to muine's database from an external
> > > applications? I've been playing around with making a tagging program in
> > > c# and I thought it would be cool to use the album pictures that muine
> > > downloads, and its cached tag information. would it be sensible to just
> > > use the database directly using sqlite or would it be better to use
> > > muine as a library to get the album pictures?
> > > 
> > > Jeremy
> > > 
> > > _______________________________________________
> > > muine-list mailing list
> > > muine-list gnome org
> > > http://lists.gnome.org/mailman/listinfo/muine-list
> > > 
> > 
> > _______________________________________________
> > muine-list mailing list
> > muine-list gnome org
> > http://mail.gnome.org/mailman/listinfo/muine-list
> 
> _______________________________________________
> muine-list mailing list
> muine-list gnome org
> http://mail.gnome.org/mailman/listinfo/muine-list
> 




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