[SCM] morituri/master: * examples/readdisc.py: Fix up cue file reading.

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


The following commit has been merged in the master branch:
commit 75e8f0df5f52b83740984b03465d82ff02d9ee58
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Wed May 6 21:58:57 2009 +0000

    	* examples/readdisc.py:
    	  Fix up cue file reading.

diff --git a/ChangeLog b/ChangeLog
index 4b30576..859bc6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2009-05-06  Thomas Vander Stichele  <thomas at apestaart dot org>
 
 	* examples/readdisc.py:
+	  Fix up cue file reading.
+
+2009-05-06  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+	* examples/readdisc.py:
 	  Add musicbrainz code for disc naming.
 
 2009-05-06  Thomas Vander Stichele  <thomas at apestaart dot org>
diff --git a/examples/readdisc.py b/examples/readdisc.py
index e450233..777fb18 100644
--- a/examples/readdisc.py
+++ b/examples/readdisc.py
@@ -220,7 +220,8 @@ def main(argv):
     discName = 'morituri'
     if metadata:
         discName = '%s - %s' % (metadata.artist, metadata.title)
-    handle = open('%s.cue' % discName, 'w')
+    cuePath = '%s.cue' % discName
+    handle = open(cuePath, 'w')
     handle.write(itable.cue())
     handle.close()
 
@@ -253,7 +254,7 @@ def main(argv):
        
     # FIXME: put accuraterip verification into a separate task/function
     # and apply here
-    cueImage = image.Image('morituri.cue')
+    cueImage = image.Image(cuePath)
     verifytask = image.ImageVerifyTask(cueImage)
     cuetask = image.AccurateRipChecksumTask(cueImage)
     function(runner, verifytask)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list