From e63fddd77a1e657ca7e0f690f89bedff7fbc4f87 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 13 Jul 2013 11:04:27 +0200 Subject: [PATCH] cleanup and comment --- morituri/rip/cd.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/morituri/rip/cd.py b/morituri/rip/cd.py index 48a21a4..2be0af5 100644 --- a/morituri/rip/cd.py +++ b/morituri/rip/cd.py @@ -42,6 +42,10 @@ MAX_TRIES = 5 class _CD(logcommand.LogCommand): + """ + @type program: L{program.Program} + """ + def addOptions(self): # FIXME: have a cache of these pickles somewhere 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' % trackResult.filename) - path = self.program.getPath(self.program.outdir, self.options.track_template, - self.mbdiscid, number, profile=profile, disambiguate=disambiguate) + '.' + profile.extension + path = self.program.getPath(self.program.outdir, + self.options.track_template, + self.mbdiscid, number, + profile=profile, disambiguate=disambiguate) \ + + '.' + profile.extension self.debug('ripIfNotRipped: path %r' % path) trackResult.number = number