* morituri/common/encode.py:

* morituri/program/cdparanoia.py:
	* morituri/rip/cd.py:
	  Clean up the temporary unencoded file.
	  Pass profile as objects to tasks, so that temp files have the right
	  extension.
This commit is contained in:
Thomas Vander Stichele
2009-06-01 09:45:30 +00:00
parent f33c50cead
commit 2f3c0fdcaf
4 changed files with 27 additions and 9 deletions

View File

@@ -81,6 +81,8 @@ class EncodeTask(task.Task):
def __init__(self, inpath, outpath, profile, taglist=None):
"""
@param profile: encoding profile
@type profile: L{Profile}
"""
self._inpath = inpath
self._outpath = outpath
@@ -88,7 +90,7 @@ class EncodeTask(task.Task):
self._level = None
self._peakdB = None
self._profile = PROFILES[profile]
self._profile = profile
def start(self, runner):
task.Task.start(self, runner)
@@ -186,5 +188,4 @@ class EncodeTask(task.Task):
self.debug('set state to NULL')
task.Task.stop(self)
self.peak = math.pow(10, self._peakdB / 10.0)