add flac and mp4
[enigma2.git] / lib / python / Components / Task.py
index 9a9d9fb72f5bff1a4d74f96cc49ccdface97bf44..022ca1f14d90076fc32d5a126353b9c8cbbfe66a 100644 (file)
@@ -37,6 +37,9 @@ class Job(object):
 
        progress = property(getProgress)
 
+       def getStatustext(self):
+               return { self.NOT_STARTED: _("Waiting"), self.IN_PROGRESS: _("In Progress"), self.FINISHED: _("Finished"), self.FAILED: _("Failed") }[self.status]
+
        def task_progress_changed_CB(self):
                self.state_changed()
 
@@ -169,7 +172,8 @@ class Task(object):
                if self.cwd is not None:
                        self.container.setCWD(self.cwd)
 
-               print "execute:", self.container.execute(self.cmd, self.args), self.cmd, " ".join(self.args)
+               execstr = self.cmd + " ".join(self.args)
+               print "execute:", self.container.execute(execstr), execstr
                if self.initial_input:
                        self.writeInput(self.initial_input)