Aubin Paul wrote:
> This may actually solve a problem I was thinking of... (maybe not :)
>
> I want to be able to browse music, or movies with the cover on the
> left side, and extended info on the right; in the case of music, I'd
> like to show "directory" information.
>
> i.e.
>
>
> [image]                 Artist
>                         Album (Year)
>                         99:99
>
> Could I add a mimetype for a directory? If the directory contains
> MP3s, I could show that, if it contains FXD files, I show those.

There is a problem. To have that information, you need to parse the
content of the directory in __init__ to have that information. This
will slow down Freevo because when you enter a directory, you need to
parse all subdirs. This is very slow.

But you could add the infos to the folder.fxd. If you create a
folder.fxd like this:

<folder>
  <info>
    <album>Foo</album>
  </info>
</folder>

You can display this inside your skin without any changes in the
python code. The problem is now, how to get that information? A script
that generates the fxd? With help of mmpython?

That reminds me of a posting of yours I forgot to answer: use sqlite
inside mmpython. If you have the time, it would be great if you could
extend the mmpython cache. Write a sqlcache.py with the old cache.py
as fallback if sqlite is not there. With that, mmpython could store
some metainformation to a directory:

Freevo calls mmpython.cachedir. mmpython caches all items in the dir,
checks for similar variables. By that, mmpython could not only store
pointer to the items in the sql cache, it could also store the album
name if all items have the same album name. For items, mmpython could
add an id to the info, so Freevo could write some variables back.
E.g. when you play an item, Freevo could store that info. We could add
autobookmark and the normal bookmark support based on the database. Or
something like "show only files I havn't seen". 

Back to the topic: if the mmpython cache adds the info "album" to the
DirItem, you can access it as easy as if you write a fxd file. Without
any change inside Freevo.


Dischi

-- 
Time is a drug.  Too much of it kills you.
  -- in Small Gods (Terry Pratchett)


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to