* morituri/program/cdparanoia.py:
Fix up track counting so HTOA can be ripped again. * examples/readhtoa.py: Fix up example so it works again, tested on Silent Alarm.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/program/cdparanoia.py:
|
||||
Fix up track counting so HTOA can be ripped again.
|
||||
* examples/readhtoa.py:
|
||||
Fix up example so it works again, tested on Silent Alarm.
|
||||
|
||||
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/test/test_image_toc.py:
|
||||
|
||||
@@ -53,12 +53,12 @@ def main():
|
||||
print 'No Hidden Track One Audio found.'
|
||||
return
|
||||
|
||||
start = index[0]
|
||||
stop, _ = track.getIndex(1)
|
||||
start = index.absolute
|
||||
stop = track.getIndex(1).absolute
|
||||
print 'Found Hidden Track One Audio from frame %d to %d' % (start, stop)
|
||||
|
||||
# rip it
|
||||
riptask = cdparanoia.ReadVerifyTrackTask('track00.wav', table,
|
||||
riptask = cdparanoia.ReadVerifyTrackTask('track00.wav', t.table,
|
||||
start, stop - 1,
|
||||
offset=int(options.offset))
|
||||
runner.run(riptask)
|
||||
|
||||
@@ -111,9 +111,9 @@ class ReadTrackTask(task.Task):
|
||||
task.Task.start(self, runner)
|
||||
|
||||
# find on which track the range starts and stops
|
||||
startTrack = 1
|
||||
startTrack = 0
|
||||
startOffset = 0
|
||||
stopTrack = 1
|
||||
stopTrack = 0
|
||||
stopOffset = self._stop
|
||||
|
||||
for i, t in enumerate(self._table.tracks):
|
||||
@@ -247,14 +247,11 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
|
||||
self.tasks = []
|
||||
self.tasks.append(
|
||||
ReadTrackTask(tmppath, table, start, stop, offset))
|
||||
self.tasks.append(
|
||||
checksum.CRC32Task(tmppath))
|
||||
self.tasks.append(checksum.CRC32Task(tmppath))
|
||||
t = ReadTrackTask(tmppath, table, start, stop, offset)
|
||||
t.description = 'Verifying track...'
|
||||
self.tasks.append(
|
||||
ReadTrackTask(tmppath, table, start, stop, offset))
|
||||
self.tasks.append(
|
||||
checksum.CRC32Task(tmppath))
|
||||
self.tasks.append(t)
|
||||
self.tasks.append(checksum.CRC32Task(tmppath))
|
||||
|
||||
self.checksum = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user