diff --git a/examples/readtoc.py b/examples/readtoc.py index 087c75c..21866e7 100644 --- a/examples/readtoc.py +++ b/examples/readtoc.py @@ -11,12 +11,11 @@ def main(): runner.run(t) print 'runner done', t.toc - if not t.toc: + if not t.table: print 'Failed to read TOC' return - for track in t.toc.tracks: - print track._indexes - + for track in t.table.tracks: + print track.getIndex(1).absolute main()