Files
whipper-gui/examples/readtoc.py
Thomas Vander Stichele 6769480d2d fail if we don't have a toc
2009-05-04 13:04:19 +00:00

23 lines
409 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.ReadTOCTask()
runner.run(t)
print 'runner done', t.toc
if not t.toc:
print 'Failed to read TOC'
return
for track in t.toc.tracks:
print track._indexes
main()