summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addon/HotFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 07:26:01 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 07:26:01 +0100
commiteb61d1bb0a30fd32f99b93f847346c610fbc91d2 (patch)
treef889dd1b19c0496f3f88c478445165abd98f9c7a /pyload/plugins/addon/HotFolder.py
parent[HTTPRequest] Raise Fail if write response fails (diff)
downloadpyload-eb61d1bb0a30fd32f99b93f847346c610fbc91d2.tar.xz
Update plugins after merging
Diffstat (limited to 'pyload/plugins/addon/HotFolder.py')
-rw-r--r--pyload/plugins/addon/HotFolder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugins/addon/HotFolder.py b/pyload/plugins/addon/HotFolder.py
index 0bce193ce..491b9e2da 100644
--- a/pyload/plugins/addon/HotFolder.py
+++ b/pyload/plugins/addon/HotFolder.py
@@ -6,8 +6,8 @@ from os import listdir, makedirs
from os.path import exists, isfile, join
from shutil import move
-from pyload.plugins.base.Addon import Addon
-from module.utils import fs_encode, save_join
+from pyload.plugins.internal.Addon import Addon
+from pyload.utils import fs_encode, safe_join
class HotFolder(Addon):
@@ -43,7 +43,7 @@ class HotFolder(Addon):
if content:
name = "%s_%s.txt" % (self.getConfig("file"), time.strftime("%H-%M-%S_%d%b%Y"))
- with open(save_join(folder, "finished", name), "wb") as f:
+ with open(safe_join(folder, "finished", name), "wb") as f:
f.write(content)
self.core.api.addPackage(f.name, [f.name], 1)