From bedd5d1fc1f434b57d23315ad2128d4ed63ac5c9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 22 May 2009 20:08:36 +0000 Subject: [PATCH] use constants --- morituri/program/cdparanoia.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/morituri/program/cdparanoia.py b/morituri/program/cdparanoia.py index b05efbf..234f0bc 100644 --- a/morituri/program/cdparanoia.py +++ b/morituri/program/cdparanoia.py @@ -67,11 +67,12 @@ class ProgressParser(object): function = m.group('function') offset = int(m.group('offset')) if function == 'read': - if offset % 1176 != 0: - print 'THOMAS: not a multiple of 2532', offset + if offset % common.WORDS_PER_FRAME != 0: + print 'THOMAS: not a multiple of %d: %d' % ( + common.WORDS_PER_FRAME, offset) print line else: - self.read = offset / 1176 + self.read = offset / common.WORDS_PER_FRAME # FIXME: handle errors class ReadTrackTask(task.Task):