diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-01 02:36:15 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-01 02:36:15 +0200 |
commit | a9e1aacd52e53b734c1e18299141900c1c8c0c32 (patch) | |
tree | dd6fba116ca4e96de074d038eeb16905087ea235 /module/plugins | |
parent | Fix https://github.com/pyload/pyload/issues/1632 (diff) | |
download | pyload-a9e1aacd52e53b734c1e18299141900c1c8c0c32.tar.xz |
Fix https://github.com/pyload/pyload/issues/1636
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/Hoster.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/MultiHook.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index 1aea3804d..92afd3672 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -332,7 +332,7 @@ class Hoster(Plugin): return self.premium = False - self.account = None + self.account = False self.req = self.pyload.requestFactory.getRequest(self.__name__) raise Retry(encode(reason)) #@TODO: Remove `encode` in 0.4.10 diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py index ea515d69a..42a1985b5 100644 --- a/module/plugins/internal/MultiHook.py +++ b/module/plugins/internal/MultiHook.py @@ -11,7 +11,7 @@ from module.utils import decode, remove_chars class MultiHook(Hook): __name__ = "MultiHook" __type__ = "hook" - __version__ = "0.53" + __version__ = "0.54" __status__ = "testing" __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"), @@ -84,7 +84,8 @@ class MultiHook(Hook): def load_account(self): self.account = self.pyload.accountManager.getAccountPlugin(self.pluginname) - self.load_account() + if self.account and not self.account.select()[0]: + self.account = False if not self.account and hasattr(self.pluginclass, "LOGIN_ACCOUNT") and self.pluginclass.LOGIN_ACCOUNT: self.log_warning(_("Hook plugin will be deactivated due missing account reference")) |