Update of /cvsroot/freevo/freevo/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4510
Modified Files: mediainfo.py Log Message: add number of files to rom drives Index: mediainfo.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** mediainfo.py 27 Feb 2004 20:15:03 -0000 1.32 --- mediainfo.py 27 Feb 2004 20:27:18 -0000 1.33 *************** *** 11,14 **** --- 11,17 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.33 2004/02/27 20:27:18 dischi + # add number of files to rom drives + # # Revision 1.32 2004/02/27 20:15:03 dischi # more unicode fixes *************** *** 600,603 **** --- 603,615 ---- else: 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) info.disc = True *************** *** 687,693 **** mmchanged, freevo_changed, part_update, complete_update = info # let's warn about some updates ! if freevo_changed < 2: print ! print 'Warning: Freevo cache helper updated.' print 'Please rerun \'freevo cache\' to speed up Freevo' print --- 699,705 ---- mmchanged, freevo_changed, part_update, complete_update = info # let's warn about some updates ! if freevo_changed < 3: print ! print 'Warning: Freevo cache helper/informations updated.' print 'Please rerun \'freevo cache\' to speed up Freevo' print ------------------------------------------------------- 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