summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-17 15:34:08 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-17 15:34:08 +0200
commite921a8a45fa785db160d2b1e518e871028454d2f (patch)
tree018a10e5d742bbfdfa08f206efc892ccbf450685 /pyLoadCore.py
parentaccount update (diff)
downloadpyload-e921a8a45fa785db160d2b1e518e871028454d2f.tar.xz
cleaned pluginsv0.4
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py11
1 files changed, 8 insertions, 3 deletions
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 "<Options>"
print " -v, --version", " " * 10, "Print version to terminal"
print " -c, --clear", " " * 12, "Delete the saved linklist"
- print " -a, --add=<link/list>", " " * 2, "Add the specified links"
+ #print " -a, --add=<link/list>", " " * 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)