From c3b3f3ea5c813edbe3e6941c535c78ad494244ee Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 01:04:09 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1998 Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001 --- module/plugins/internal/XFSHoster.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins/internal/XFSHoster.py') diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index 0d6a61b33..63b53be41 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -11,13 +11,14 @@ from module.utils import html_unescape class XFSHoster(SimpleHoster): - __name = "XFSHoster" + __name__ = "XFSHoster" __type__ = "hoster" __version__ = "0.65" __status__ = "testing" __pattern__ = r'^unmatchable$' - __config__ = [("use_premium" , "bool", "Use premium account if available" , True), + __config__ = [("activated" , "bool", "Activated" , True), + ("use_premium" , "bool", "Use premium account if available" , True), ("fallback_premium", "bool", "Fallback to free download if premium fails", True), ("chk_filesize" , "bool", "Check file size" , True)] @@ -80,7 +81,7 @@ class XFSHoster(SimpleHoster): if self.account: account = self.account else: - account = self.pyload.accountManager.getAccountPlugin(self.__name__) + account = self.pyload.accountManager.getAccountPlugin(self.classname) if account and hasattr(account, "PLUGIN_DOMAIN") and account.PLUGIN_DOMAIN: self.PLUGIN_DOMAIN = account.PLUGIN_DOMAIN -- cgit v1.2.3