On Fri, 2005-06-10 at 17:14 +0200, Dirk Meyer wrote:
> Thanks (both of you). I will make a fixed mmpython release. Please
> also check if there are problems with Python 2.4 and the mmpython cvs
> tag REL-0.4
No obvious problems so far. Although there is a problem with recent
versions of lsdvd, which provide usec precision for DVD times. There
was a thread either here or on the -devel list about that not too long
ago, but I didn't follow it, and the fix was so trivial it was faster
just to fix it than to search the list. :)
It's attached here. Applies against mmpython cvs head, but it's easily
backported.
Cheers,
Jason.
--- mmpython.orig/mmpython/disc/lsdvd.py 2005-06-10 11:49:32.000000000 -0400
+++ mmpython/mmpython/disc/lsdvd.py 2005-06-10 11:48:49.000000000 -0400
@@ -33,6 +33,7 @@
import os
import popen2
import logging
+import re
# mmpython imports
from mmpython import mediainfo
@@ -98,7 +99,7 @@
self.mime = 'video/mpeg'
- l = data[3].split(':')
+ l = re.split("[:.]", data[3])
self.length = (int(l[0])*60+int(l[1]))*60+int(l[2])
self.trackno = int(data[1])
self.chapters = int(data[5])