From e921a8a45fa785db160d2b1e518e871028454d2f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 17 Aug 2010 15:34:08 +0200 Subject: cleaned plugins --- pyLoadCore.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index e211c59ca..1c21397e5 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -20,7 +20,7 @@ @author: mkaay @version: v0.4.0 """ -CURRENT_VERSION = '0.4.0b' +CURRENT_VERSION = '0.4.0' from getopt import GetoptError from getopt import getopt @@ -123,7 +123,7 @@ class Core(object): print "" print " -v, --version", " " * 10, "Print version to terminal" print " -c, --clear", " " * 12, "Delete the saved linklist" - print " -a, --add=", " " * 2, "Add the specified links" + #print " -a, --add=", " " * 2, "Add the specified links" print " -u, --user", " " * 13, "Set new User and password" print " -d, --debug", " " * 12, "Enable debug mode" print " -s, --setup", " " * 12, "Run Setup Assistent" @@ -477,7 +477,12 @@ class ServerMethods(): def add_package(self, name, links, queue=0): #0 is collector - pid = self.core.files.addPackage(name, name, queue) + if self.core.config['general']['folder_per_package']: + folder = name + else: + folder = "" + + pid = self.core.files.addPackage(name, folder, queue) self.core.files.addLinks(links, pid) -- cgit v1.2.3