add debug

This commit is contained in:
Thomas Vander Stichele
2011-05-30 13:08:29 +00:00
parent 2a48caa0b8
commit faf18f32f6
2 changed files with 2 additions and 2 deletions

View File

@@ -615,10 +615,9 @@ class Program(log.Loggable):
return res
def writeCue(self, discName):
self.debug('write .cue file')
assert self.result.table.canCue()
cuePath = '%s.cue' % discName
self.debug('write .cue file to %s', cuePath)
handle = open(cuePath, 'w')
# FIXME: do we always want utf-8 ?
handle.write(self.result.table.cue().encode('utf-8'))

View File

@@ -271,6 +271,7 @@ See http://sourceforge.net/tracker/?func=detail&aid=604751&group_id=2171&atid=1
prog.writeCue(discName)
# write .m3u file
self.debug('writing m3u file for %r', discName)
m3uPath = u'%s.m3u' % discName
handle = open(m3uPath, 'w')
handle.write(u'#EXTM3U\n')