[SCM] morituri/master: add example

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


The following commit has been merged in the master branch:
commit 8bedff6f0482a4d5fccb7286de7186d5c24f04b1
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue Jan 6 11:44:19 2009 +0000

    add example

diff --git a/misc/header.py b/examples/readcue.py
similarity index 78%
copy from misc/header.py
copy to examples/readcue.py
index 15b83ba..75bcbdf 100644
--- a/misc/header.py
+++ b/examples/readcue.py
@@ -19,3 +19,22 @@
 # 
 # You should have received a copy of the GNU General Public License
 # along with morituri.  If not, see <http://www.gnu.org/licenses/>.
+
+import sys
+
+from morituri.image import cue
+
+def main(path):
+    cuefile = cue.Cue(path)
+    cuefile.parse()
+
+    print cuefile._tracks
+
+path = 'test.cue'
+
+try:
+    path = sys.argv[1]
+except IndexError:
+    pass
+
+main(path)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list