summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:45:22 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:45:22 +0100
commitbbf4c9d993d09ea09e6fae04d2fa5ebb8a237385 (patch)
tree1fa9875f27439307ffd11beadd14a3238ba64b5d
parentFix DLC (thx mbosner) (diff)
downloadpyload-bbf4c9d993d09ea09e6fae04d2fa5ebb8a237385.tar.xz
[MultiHook] Store account type
-rw-r--r--module/plugins/internal/MultiHook.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index 8164a02fc..5cb72677f 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -9,7 +9,7 @@ from module.utils import remove_chars
class MultiHook(Hook):
__name__ = "MultiHook"
__type__ = "hook"
- __version__ = "0.26"
+ __version__ = "0.27"
__config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
@@ -49,6 +49,10 @@ class MultiHook(Hook):
self.new_supported = []
+ def coreReady(self):
+ self.account = self.core.accountManager.getAccountPlugin(self.__name__)
+
+
def getURL(self, *args, **kwargs): #@TODO: Remove in 0.4.10
""" see HTTPRequest for argument list """
h = pyreq.getHTTPRequest(timeout=120)
@@ -131,7 +135,8 @@ class MultiHook(Hook):
self.logInfo(_("Reloading supported %s list") % self.type)
- old_supported = self.supported
+ old_supported = self.supported
+
self.supported = []
self.new_supported = []
self.plugins = []