[SCM] morituri/master: * morituri/rip/cd.py: Log the version at the beginning to help in bug reports.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:20 UTC 2014


The following commit has been merged in the master branch:
commit 243d9498537eafed9509a392d4556be0208fdc6a
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Apr 25 17:41:30 2010 +0000

    	* morituri/rip/cd.py:
    	  Log the version at the beginning to help in bug reports.

diff --git a/ChangeLog b/ChangeLog
index cc21119..93f4f0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-04-25  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/rip/cd.py:
+	  Log the version at the beginning to help in bug reports.
+
+2010-04-25  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/rip/main.py:
 	  Fix another UnicodeEncodeError problem as mentioned in #25.
 
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:

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list