diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 17:48:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 18:06:38 +0200 |
commit | 6cdb1ae0fe8f4faf897220d0520ca3e753e9f3e4 (patch) | |
tree | 24a8d6e3c2e62597b6cd3a75b77bf1a6470bd702 /pyload/plugin/addon/MergeFiles.py | |
parent | Fix lib import (diff) | |
download | pyload-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.py | 4 |
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(): |