Bugs item #1236228, was opened at 2005-07-11 20:23 Message generated for change (Comment added) made by qwasar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1236228&group_id=46652
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: qwasar (qwasar) Assigned to: Nobody/Anonymous (nobody) Summary: No auto-detect dvd Initial Comment: Hi, When I insert a DVD with two titles, an error was reported: __init__.py (239): Building the xml hash database... __init__.py (271): done mmpython.create error: Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mmpython/factory.py", line 250, in create return self.create_from_device(name) File "/usr/lib/python2.3/site-packages/mmpython/factory.py", line 217, in create_from_device t = e[3](devicename) File "/usr/lib/python2.3/site-packages/mmpython/disc/lsdvd.py", line 115, in __init__ self.valid = self.isDisc(device) File "/usr/lib/python2.3/site-packages/mmpython/disc/lsdvd.py", line 207, in isDisc ret = self.lsdvd(device) File "/usr/lib/python2.3/site-packages/mmpython/disc/lsdvd.py", line 151, in lsdvd ti = DVDTitle(data) File "/usr/lib/python2.3/site-packages/mmpython/disc/lsdvd.py", line 99, in __init__ self.length = (int(l[0])*60+int(l[1]))*60+int(l[2]) ValueError: invalid literal for int(): 24.040 Please report this bug to the Freevo mailing list ***************************************** Error detecting the disc Please contact the developers ***************************************** --- The lsdvd command reports de following: libdvdread: Using libdvdcss version 1.2.8 for DVD access Disc Title: Title: 01, Length: 01:40:24.040 Chapters: 06, Cells: 06, Audio streams: 01, Subpictures: 00 Title: 02, Length: 01:31:28.020 Chapters: 06, Cells: 06, Audio streams: 01, Subpictures: 00 Longest track: 01 --- Note that I use a 2.6.11 kernel on a unstable Debian distribution. Thank's ahead of time. QwasaR ---------------------------------------------------------------------- >Comment By: qwasar (qwasar) Date: 2005-07-11 21:21 Message: Logged In: YES user_id=1310705 Solution: In the lsdvd.py module (/usr/lib/python2.3/site-packages/mmpython/disc/), in line 99, change: elf.length = (int(l[0])*60+int(l[1]))*60+int(l[2]) by self.length = (int(l[0])*60+int(l[1]))*60+int(l[2][:2]) The problem is that it tries to operate (mathematically) with a string that cannot represent a number. In my case, the string contents is '24.040' and this isn't a number. The solution is to get the only two left characters of the string. This is a provisional patch because I think that the data value must be validated to envolve all possibilities to become done. Please, report this bug to the responsible group. Thank's and congratulations for your excelent freevo program. QwasaR. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1236228&group_id=46652 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel