[SCM] morituri/master: * examples/readtrack.py: Allow specifying the track to save.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:08:54 UTC 2014
The following commit has been merged in the master branch:
commit 66033faac76daef90a6149fd40272d7bff044e27
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sun May 3 19:16:05 2009 +0000
* examples/readtrack.py:
Allow specifying the track to save.
diff --git a/ChangeLog b/ChangeLog
index f43b63d..b3dba5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
+ * examples/readtrack.py:
+ Allow specifying the track to save.
+
+2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
+
* morituri/common/task.py:
Make SyncRunner clear previous description/progress task by
tracking longest output given up to now.
diff --git a/examples/readtrack.py b/examples/readtrack.py
index d3e73b5..d6bd768 100644
--- a/examples/readtrack.py
+++ b/examples/readtrack.py
@@ -3,6 +3,7 @@
import re
import os
+import sys
import stat
import subprocess
import tempfile
@@ -16,11 +17,17 @@ gobject.threads_init()
def main():
log.init()
+
+
runner = task.SyncRunner()
checksums = []
- fd, path = tempfile.mkstemp(suffix='.morituri')
- os.close(fd)
+ if len(sys.argv) > 1:
+ path = sys.argv[1]
+ else:
+ fd, path = tempfile.mkstemp(suffix='.morituri.wav')
+ os.close(fd)
+ print 'storing track to %s' % path
fakeTable = table.Table([
table.Track( 1, 0, 15536),
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list