Files
whipper-gui/examples/readtoc.py
Thomas Vander Stichele d07fde2c96 * examples/ARcalibrate.py:
* examples/readhtoa.py:
	* examples/readtoc.py:
	* morituri/program/cdrdao.py:
	  Rename ReadTOCTask to ReadIndexTableTask.
	  Rename ReadTableTask to ReadTOCTask.
2009-05-04 13:51:11 +00:00

22 lines
423 B
Python

# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
from morituri.common import task, log
from morituri.program import cdrdao
def main():
log.init()
runner = task.SyncRunner()
t = cdrdao.ReadIndexTableTask()
runner.run(t)
print 'runner done', t.toc
if not t.table:
print 'Failed to read TOC'
return
for track in t.table.tracks:
print track.getIndex(1).absolute
main()