I did it a little differently, but it works pretty well with all three
cases. Also, I came up with a way to make vfs always write to the
overlay:
def open(name, mode='r'):
"""
open the file
"""
try:
if config.VFS_ONLY and not os.path.isfile(name): raise IOError
else: return file(name, mode)
except:
...
and
def codecs_open(name, mode, encoding):
"""
use codecs.open to open the file
"""
try:
if config.VFS_ONLY and not os.path.isfile(name): raise IOError
else: return codecs.open(name, mode, encoding=encoding)
except:
Making this change on my system and then running mp3dir.py kept my music
directories completely clean and all content was handled in there.
At this point, there are two things I'd like to do:
1. Convert mp3dir.py into "audio/extendedmeta.py"
2. Have it optionally run when a new directory is entered, same as when
mmpython.parse() is run and the progressbar comes up.
On Thu, Jan 15, 2004 at 12:58:24PM +0100, Dirk Meyer wrote:
> Aubin Paul wrote:
> > I'd probably do something like this: (pseudo)
> >
> > if md5(image) in tag != md5(file):
> > write image using filename
> > else:
> > continue
>
> And do this only we have have no cover.jpg already. Use the help
> function util.getimage because this checks dir + vfs for png and jpg.
>
>
> Dischi
>
> --
> No trees were killed in the sending of this message.
> However a large number of electrons were terribly inconvenienced.
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog