* 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

@@ -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