Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv29744
Modified Files:
fxdimdb.py
Log Message:
use mmpython to get the disc label
Index: fxdimdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/fxdimdb.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** fxdimdb.py 30 Aug 2003 12:21:13 -0000 1.9
--- fxdimdb.py 3 Sep 2003 18:00:24 -0000 1.10
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.10 2003/09/03 18:00:24 dischi
+ # use mmpython to get the disc label
+ #
# Revision 1.9 2003/08/30 12:21:13 dischi
# small changes for the changed xml_parser
***************
*** 87,91 ****
import config
from xml_parser import parseMovieFile
!
#Constants
--- 90,94 ----
import config
from xml_parser import parseMovieFile
! from mmpython.disc.discinfo import cdrom_disc_id
#Constants
***************
*** 816,838 ****
if not os.path.exists(drive): return drive
!
! try:
! img = open(drive)
! img.seek(0x0000832d)
! id = img.read(16)
! img.seek(32808, 0)
! label = img.read(32)
!
! LABEL_REGEXP = re.compile("^(.*[^ ]) *$").match
! m = LABEL_REGEXP(label)
! except IOError:
! raise FxdImdb_IO_Error('No disc in drive %s' % drive)
!
!
! if m:
! label = m.group(1)
! img.close()
!
! return id+label
def print_info(self):
--- 819,823 ----
if not os.path.exists(drive): return drive
! return cdrom_disc_id(drive)
def print_info(self):
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog