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\d+).*') -_TRACK_RE = re.compile(r""" - ^(?P[\d\s]{2})\s+ # Track - \w+\s+ # Mode - \d\s+ # Flags - \d\d:\d\d:\d\d # Start in HH:MM:FF - \((?P.+)\)\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 in frames -""", re.VERBOSE) - # FIXME: handle errors class ReadTrackTask(task.Task):