Aubin Paul wrote: > Ok, I'm now on the Audio section of my skin, and I've been thinking it > would be nice for both directories and playlists to have the property > "length, artist, album, year" for audio stuff at least. > > What this means, basically, is that playlists will have a variable > like this: > > self.artist > self.album > self.length > self.year
That will be a problem. To have that attribute, you need to check all items in the dir/playlist. E.g. you enter a directory with 10 subdirs, each containing 200 mp3 files, you will need to access 11 mmpython cache files when entering the dir. A playlist containing 100 items in different dirs will result in reading 100 cache files. A big cache file takes about 0.4 secs to load. That's the biggest problem with the current mmpython cache stuff. It may be a good idea to store metainfo for files/playlists, too. E.g. when you first see the directory, you don't have that info. After entering once, freevo will have the extra infos stored somewhere (or running freevo cache will also generate that info). > However, the problem I'm running in to is that neither playlist nor > directory seem to "know" about this mmpython info, and I don't know > where to grab the information from. No, since both don't have infos. They only create items which know how to get the info for themself (item.py:Item.set_url). So we need a way to get informations about playlists/directories _without_ scanning all files in it during runtime. And now we are back to the 'store metadata for items' idea :-) Dischi -- The 50-50-90 rule: Any time you have a 50-50 chance of getting something right, there's a 90% probability you'll get it wrong. ------------------------------------------------------- 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-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
