From d6114b958a407cf3e7eedae85197521406a58ba2 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Tue, 8 Jul 2008 09:24:18 +0000 Subject: [PATCH] create & purge unique one-time temp directory for each burning job and --- lib/python/Plugins/Extensions/DVDBurn/Process.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 9163b8ae..5123ea5d 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -180,13 +180,17 @@ class RemoveDVDFolder(Task): def __init__(self, job): Task.__init__(self, job, "Remove temp. files") self.setTool("/bin/rm") - self.args += ["-rf", self.job.workspace + "/dvd"] + self.args += ["-rf", self.job.workspace] class DVDJob(Job): def __init__(self, cue): Job.__init__(self, "DVD Burn") self.cue = cue - self.workspace = "/media/hdd/tmp" + from time import strftime + from Tools.Directories import SCOPE_HDD, resolveFilename, createDir + new_workspace = resolveFilename(SCOPE_HDD) + "tmp/" + strftime("%Y%m%d%H%M%S") + createDir(new_workspace) + self.workspace = new_workspace self.fromDescription(self.createDescription()) def fromDescription(self, description): -- 2.30.2