Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29803

Modified Files:
        mediainfo.py 
Log Message:
do not cache bad info

Index: mediainfo.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** mediainfo.py        28 May 2004 15:53:46 -0000      1.45
--- mediainfo.py        31 May 2004 15:58:26 -0000      1.46
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.46  2004/05/31 15:58:26  dischi
+ # do not cache bad info
+ #
  # Revision 1.45  2004/05/28 15:53:46  dischi
  # add chapters support
***************
*** 650,654 ****
      else:
          mmdata = mmpython.parse(media.devicename)
!         util.save_pickle(mmdata, cachefile)
  
      cachefile = os.path.join(cachedir, id + '.freevo')
--- 653,663 ----
      else:
          mmdata = mmpython.parse(media.devicename)
!         if not mmdata:
!             print '*****************************************'
!             print 'Error detecting the disc'
!             print 'Please contact the developers'
!             print '*****************************************'
!         else:
!             util.save_pickle(mmdata, cachefile)
  
      cachefile = os.path.join(cachedir, id + '.freevo')



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to