Thomas Schueppel wrote: > So here is my proposal: > > Have an abstract factory that generates Info objects for > a medium. The structure of these objects is like this: > > MetaInfoCore: > contains [TITLE, COMMENT (=DESCRIPTION), ARTIST > (=AUTHOR,CREATOR), SIZE, DATE, TYPE, SUBTYPE] > > AudioInfoCore(MetaInfoCore): > contains [TITLE, ARTIST, TRACKNO, TRACKOF, ALBUM, > CHANNELS, SAMPLERATE, TYPE, SUBTYPE, LENGTH, > ENCODER] > retrieved from: vorbis header, id3, cddb, ... > > VideoInfoCore(MetaInfoCore): > contains [TITLE, LENGTH, ENCODER, CHANNELS, ...] > retrieved from: filename, avi header, imdb, xml... > > ImageInfoCore(MetaInfoCore): > contains [TITLE, ARTIST (=PHOTOGRAPHER), TYPE, > SUBTYPE, X, Y, COLORS, ...] > retrieved from: filename, exif, iptc, ... >
Sorry for the later answer. Looks nice. For my skin rewrite I need a clean way of getting attributes. > I have already written most of the audio part. > OGG, MP3, PCM parsing in pure python. More > Types can be added by registering them at the > Factory singleton. > Identification goes in 2 phases. First the > filename is used for a quick check. If that > fails, a brute-force-try-them-all check is > performed. What's the current status? Some code ready for testing? Dischi -- "We're back to the times when men were men and wrote their own device drivers" -- Linus Torvalds ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel