Files
whipper-gui/examples/readtoc.py
Thomas Vander Stichele 96ac69a13d * examples/readdisc.py:
* examples/readhtoa.py:
	* examples/readtoc.py:
	  Rename IndexTable to Table.
2009-05-16 09:51:03 +00:00

22 lines
418 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.ReadTableTask()
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()