summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar stickell <l.stickell@yahoo.it> 2014-08-23 18:41:21 +0200
committerGravatar stickell <l.stickell@yahoo.it> 2014-08-23 18:41:21 +0200
commit1f8889d604bc7b18fe1ad42f61ecfc731e11339d (patch)
tree81b74e7da8e616662759e70c693216bf52ad20f5 /module/plugins/internal
parentImprove Setup (diff)
downloadpyload-1f8889d604bc7b18fe1ad42f61ecfc731e11339d.tar.xz
[MultiHoster] Fixed crash due to getConf deprecation
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/MultiHoster.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py
index 97f3a5996..ec80116d6 100644
--- a/module/plugins/internal/MultiHoster.py
+++ b/module/plugins/internal/MultiHoster.py
@@ -11,7 +11,7 @@ class MultiHoster(Hook):
Generic MultiHoster plugin
"""
- __version__ = "0.19"
+ __version__ = "0.20"
replacements = [("2shared.com", "twoshared.com"), ("4shared.com", "fourshared.com"), ("cloudnator.com", "shragle.com"),
("ifile.it", "filecloud.io"), ("easy-share.com", "crocko.com"), ("freakshare.net", "freakshare.com"),
@@ -26,15 +26,15 @@ class MultiHoster(Hook):
self.new_supported = []
def getConfig(self, option, default=''):
- """getConfig with default value - sublass may not implements all config options"""
+ """getConfig with default value - subclass may not implements all config options"""
try:
- return self.getConf(option)
+ # Fixed loop due to getConf deprecation in 0.4.10
+ return super(MultiHoster, self).getConfig(option)
except KeyError:
return default
def getHosterCached(self):
if not self.hosters:
-
try:
hosterSet = self.toHosterSet(self.getHoster()) - set(self.ignored)
except Exception, e: