Update of /cvsroot/freevo/freevo/src/mediadb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv875/src/mediadb
Modified Files:
generic.py
Log Message:
handle bug
Index: generic.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/mediadb/generic.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** generic.py 7 Aug 2005 09:41:46 -0000 1.6
--- generic.py 21 Aug 2005 14:01:17 -0000 1.7
***************
*** 81,88 ****
cache = FileCache(media.devicename, cachefile)
info = DiscInfo(True, media, cache)
- info.url = info['mime'][6:] + '://'
- if info['mime'] in ('video/vcd', 'video/dvd'):
- return info
# Disc is data of some sort. Mount it to get the file info
media.mount()
--- 81,92 ----
cache = FileCache(media.devicename, cachefile)
info = DiscInfo(True, media, cache)
+ try:
+ info.url = info['mime'][6:] + '://'
+ if info['mime'] in ('video/vcd', 'video/dvd'):
+ return info
+ except:
+ log.error('Please report this: mime=%s' % info['mime'])
+ info.url = ''
# Disc is data of some sort. Mount it to get the file info
media.mount()
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog