[SCM] morituri/master: update example
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:08:51 UTC 2014
The following commit has been merged in the master branch:
commit 5d6fb6315a7da143073763686473835d5919e5a2
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri May 1 18:35:52 2009 +0000
update example
diff --git a/examples/readtrack.py b/examples/readtrack.py
index 40391e6..26f1e28 100644
--- a/examples/readtrack.py
+++ b/examples/readtrack.py
@@ -7,30 +7,9 @@ import subprocess
import tempfile
from morituri.common import task, log, common
-from morituri.image import toc
from morituri.program import cdparanoia
from morituri.extern import asyncsub
-states = ['START', 'TRACK', 'LEADOUT', 'DONE']
-
-_ANALYZING_RE = re.compile(r'^Analyzing track (?P<track>\d+).*')
-_TRACK_RE = re.compile(r"""
- ^(?P<track>[\d\s]{2})\s+ # Track
- \w+\s+ # Mode
- \d\s+ # Flags
- \d\d:\d\d:\d\d # Start in HH:MM:FF
- \((?P<start>.+)\)\s+ # Start in frames
- \d\d:\d\d:\d\d # Length in HH:MM:FF
- \(.+\) # Length in frames
-""", re.VERBOSE)
-_LEADOUT_RE = re.compile(r"""
- ^Leadout\s
- \w+\s+ # Mode
- \d\s+ # Flags
- \d\d:\d\d:\d\d # Start in HH:MM:FF
- \((?P<start>.+)\) # Start in frames
-""", re.VERBOSE)
-
# FIXME: handle errors
class ReadTrackTask(task.Task):
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list