cleanup and comment

This commit is contained in:
Thomas Vander Stichele
2013-07-13 11:04:27 +02:00
parent 1a4f9e367d
commit e63fddd77a

View File

@@ -42,6 +42,10 @@ MAX_TRIES = 5
class _CD(logcommand.LogCommand): class _CD(logcommand.LogCommand):
"""
@type program: L{program.Program}
"""
def addOptions(self): def addOptions(self):
# FIXME: have a cache of these pickles somewhere # FIXME: have a cache of these pickles somewhere
self.parser.add_option('-T', '--toc-pickle', self.parser.add_option('-T', '--toc-pickle',
@@ -300,8 +304,11 @@ Log files will log the path to tracks relative to this directory.
self.debug('ripIfNotRipped have trackresult, path %r' % self.debug('ripIfNotRipped have trackresult, path %r' %
trackResult.filename) trackResult.filename)
path = self.program.getPath(self.program.outdir, self.options.track_template, path = self.program.getPath(self.program.outdir,
self.mbdiscid, number, profile=profile, disambiguate=disambiguate) + '.' + profile.extension self.options.track_template,
self.mbdiscid, number,
profile=profile, disambiguate=disambiguate) \
+ '.' + profile.extension
self.debug('ripIfNotRipped: path %r' % path) self.debug('ripIfNotRipped: path %r' % path)
trackResult.number = number trackResult.number = number