Update of /cvsroot/freevo/freevo/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7670/src/util
Modified Files: mediainfo.py Log Message: save disc file info Index: mediainfo.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** mediainfo.py 27 Feb 2004 20:27:18 -0000 1.33 --- mediainfo.py 27 Feb 2004 20:42:05 -0000 1.34 *************** *** 11,14 **** --- 11,17 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.34 2004/02/27 20:42:05 dischi + # save disc file info + # # Revision 1.33 2004/02/27 20:27:18 dischi # add number of files to rom drives *************** *** 604,614 **** metainfo = {} ! if mmdata.mime == 'unknown/unknown': ! media.mount() ! for type in ('video', 'audio', 'image'): ! items = getattr(config, '%s_SUFFIX' % type.upper()) ! files = util.match_files_recursively(media.mountdir, items) ! metainfo['disc_num_%s' % type] = len(files) ! media.umount() info = Info(cachefile, mmdata, metainfo) --- 607,618 ---- metainfo = {} ! if mmdata.mime == 'unknown/unknown' and not metainfo.has_key('disc_num_video'): ! media.mount() ! for type in ('video', 'audio', 'image'): ! items = getattr(config, '%s_SUFFIX' % type.upper()) ! files = util.match_files_recursively(media.mountdir, items) ! metainfo['disc_num_%s' % type] = len(files) ! media.umount() ! util.save_pickle(metainfo, cachefile) info = Info(cachefile, mmdata, metainfo) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog