diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-12 23:42:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-12 23:42:11 +0200 |
commit | c52ee8392501ee916d85fd9da75aa08a8f014493 (patch) | |
tree | 1cd802f64a1ffe0173473fd1f044e014bee59fff /module/plugins/hooks/HotFolder.py | |
parent | changed version strings (diff) | |
download | pyload-c52ee8392501ee916d85fd9da75aa08a8f014493.tar.xz |
removed server_methods, please test everything entirely
Diffstat (limited to 'module/plugins/hooks/HotFolder.py')
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 1e320b87c..ee1031ad5 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -68,7 +68,7 @@ class HotFolder(Hook): f.write(content) f.close() - self.core.server_methods.add_package(f.name, [f.name], 1) + self.core.api.addPackage(f.name, [f.name], 1) for f in listdir(self.getConfig("folder")): path = join(self.getConfig("folder"), f) @@ -80,6 +80,6 @@ class HotFolder(Hook): move(path, newpath) self.log.info(_("Added %s from HotFolder") % f) - self.core.server_methods.add_package(f, [newpath], 1) + self.core.api.addPackage(f, [newpath], 1)
\ No newline at end of file |