summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
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)