Aubin Paul wrote:
> On Sun, Jun 29, 2003 at 10:19:09AM +0200, Dirk Meyer wrote:
>> Cool, than try to change cache.py in mmpython to a new caching
>> model. Maybe make a cache_sqlite.py so that the current cache can be
>> used if you don't have sqlite. Maybe with sqlite we can cache _all_
>> metadata, right now we don't cache the thumbnails because it's too
>> slow. To insert a new cache into mmpython you only need to add it into
>> __init__.py in the root directory, the other parts of mmpython don't
>> need to be changed.
>
> I'm going to write a standalone version first, just something that
> recurses through directories and adds all the files to the database,
> after that, I'll add it to Freevo in someway to try it.

I just started and looked into musicsqlimport.py. Looks very easy to
me. Is it possible to add 'data', too? With data I mean no string or
integer, but maybe images (thumbnails from images and covers from
mp3). It would be nice to have the following functions:


def scan_dir(dir, recursive = (TRUE|FALSE), rescan = (TRUE|FALSE))
   """
   add all objects from the dir into the database, go down recursive
   or not and rescan files which are already in the database (or not)
   """

def get_data(filename)
   """
   return everything as mmpython object about this file
   """

maybe a way to also store dvd/vcd informations in the database
(tracks, etc.)

> The other thing I thought of, is it would be nice to have "Pre/Post"
> plugins.

That should be easy



Dischi

-- 
Please do not complain about the coffee. You'll be old and weak
someday, too!


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to