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):