summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-07 17:40:43 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-07 17:40:43 +0200
commitafb5e3371a9b43dff97131440affcc2c68ec5593 (patch)
tree7d2c9f1b8a016fc115881d607fcdeb2c12b30703 /module/plugins/Plugin.py
parenthook improvements (diff)
downloadpyload-afb5e3371a9b43dff97131440affcc2c68ec5593.tar.xz
file info prefetching (RapidshareCom UploadedTo), download folder fix, SerienjunkiesOrg fix
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 8c2a648fd..8392486f1 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -232,8 +232,11 @@ class Plugin(object):
self.pyfile.setStatus("downloading")
download_folder = self.config['general']['download_folder']
-
- location = join(download_folder, self.pyfile.package().folder.decode(sys.getfilesystemencoding()))
+
+ if self.config['general']['folder_per_package']:
+ location = join(download_folder, self.pyfile.package().folder.decode(sys.getfilesystemencoding()))
+ else:
+ location = download_folder
if not exists(location):
makedirs(location)