soxi: remove self._path unused variable, mark dep as 'soxi' (#89)
This commit is contained in:
committed by
JoeLametta
parent
d455b77e8a
commit
ee9a58fcbb
@@ -21,16 +21,15 @@ class AudioLengthTask(ctask.PopenTask, log.Loggable):
|
||||
"""
|
||||
assert type(path) is unicode, "%r is not unicode" % path
|
||||
|
||||
self._path = path
|
||||
self.logName = os.path.basename(path).encode('utf-8')
|
||||
|
||||
self.command = [SOXI, '-s', self._path]
|
||||
self.command = [SOXI, '-s', path]
|
||||
|
||||
self._error = []
|
||||
self._output = []
|
||||
|
||||
def commandMissing(self):
|
||||
raise common.MissingDependencyException('sox')
|
||||
raise common.MissingDependencyException('soxi')
|
||||
|
||||
def readbytesout(self, bytes):
|
||||
self._output.append(bytes)
|
||||
|
||||
Reference in New Issue
Block a user