23 lines
409 B
Python
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()
|