* morituri/image/toc.py:

Add some debugging.
This commit is contained in:
Thomas Vander Stichele
2009-05-15 08:09:04 +00:00
parent 5cae5cf60f
commit 2f384d32cd
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/image/toc.py:
Add some debugging.
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/image/table.py:
@@ -7,6 +12,7 @@
- use counter for FILE lines
- put FILE line before TRACK if track does not have INDEX 00
Take counter into account for setFile
Fix off-by-one in setFile
* examples/readdisc.py:
Add --track-template.
Pass counter to setFile.

View File

@@ -106,9 +106,11 @@ class TocFile(object, log.Loggable):
# is a limitation of our parser approach
if state == 'HEADER':
self.table.cdtext[key] = value
self.debug('Found disc CD-Text %s: %s', key, value)
elif state == 'TRACK':
if key != 'ISRC' or not currentTrack \
or currentTrack.isrc is not None:
self.debug('Found track CD-Text %s: %s', key, value)
currentTrack.cdtext[key] = value
# look for header elements