From 243d9498537eafed9509a392d4556be0208fdc6a Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 25 Apr 2010 17:41:30 +0000 Subject: [PATCH] * morituri/rip/cd.py: Log the version at the beginning to help in bug reports. --- ChangeLog | 5 +++++ morituri/rip/cd.py | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc21119..93f4f0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-25 Thomas Vander Stichele + + * morituri/rip/cd.py: + Log the version at the beginning to help in bug reports. + 2010-04-25 Thomas Vander Stichele * morituri/rip/main.py: diff --git a/morituri/rip/cd.py b/morituri/rip/cd.py index 86227f9..a80849e 100644 --- a/morituri/rip/cd.py +++ b/morituri/rip/cd.py @@ -242,10 +242,12 @@ See http://sourceforge.net/tracker/?func=detail&aid=604751&group_id=2171&atid=1 handle = open(m3uPath, 'w') handle.write(u'#EXTM3U\n') if htoapath: - handle.write(u'#EXTINF:%d,%s\n' % ( + u = u'#EXTINF:%d,%s\n' % ( itable.getTrackStart(1) / common.FRAMES_PER_SECOND, - os.path.basename(htoapath[:-4]))) - handle.write(u'%s\n' % os.path.basename(htoapath)) + os.path.basename(htoapath[:-4])) + handle.write(u.encode('utf-8')) + u = '%s\n' % os.path.basename(htoapath) + handle.write(u.encode('utf-8')) for i, track in enumerate(itable.tracks): if not track.audio: