summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/addon/MergeFiles.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:48:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 18:06:38 +0200
commit6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4 (patch)
tree24a8d6e3c2e62597b6cd3a75b77bf1a6470bd702 /pyload/plugin/addon/MergeFiles.py
parentFix lib import (diff)
downloadpyload-6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4.tar.xz
[config] Use get method instead dict access
Diffstat (limited to 'pyload/plugin/addon/MergeFiles.py')
-rw-r--r--pyload/plugin/addon/MergeFiles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/addon/MergeFiles.py b/pyload/plugin/addon/MergeFiles.py
index dfc5f41d4..4f95ef9d7 100644
--- a/pyload/plugin/addon/MergeFiles.py
+++ b/pyload/plugin/addon/MergeFiles.py
@@ -37,9 +37,9 @@ class MergeFiles(Addon):
files[data['name'][:-4]].sort()
fid_dict[data['name']] = fid
- download_folder = self.config['general']['download_folder']
+ download_folder = self.config.get("general", "download_folder")
- if self.config['general']['folder_per_package']:
+ if self.config.get("general", "folder_per_package"):
download_folder = fs_join(download_folder, pack.folder)
for name, file_list in files.iteritems():