diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-31 10:38:51 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-31 10:38:51 +0200 |
commit | cc3c575a68fd4b585f0e4af586e027fddb0fe605 (patch) | |
tree | 511a34c2f26d8f3ab012fb34ddce3b80fb93d531 /module/plugins/internal/SimpleCrypter.py | |
parent | Fix https://github.com/pyload/pyload/issues/1628 (diff) | |
download | pyload-cc3c575a68fd4b585f0e4af586e027fddb0fe605.tar.xz |
Fix and improve account logic
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index 33ebd8cac..20a03df9f 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -10,7 +10,7 @@ from module.utils import fixup, html_unescape class SimpleCrypter(Crypter, SimpleHoster): __name__ = "SimpleCrypter" __type__ = "crypter" - __version__ = "0.57" + __version__ = "0.58" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -59,14 +59,8 @@ class SimpleCrypter(Crypter, SimpleHoster): #@TODO: Remove in 0.4.10 def init(self): account_name = (self.__name__ + ".py").replace("Folder.py", "").replace(".py", "") - account = self.pyload.accountManager.getAccountPlugin(account_name) - - if account and account.can_use(): - self.user, data = account.select() - self.req = account.get_request(self.user) - self.premium = account.is_premium(self.user) - - self.account = account + self.account = self.pyload.accountManager.getAccountPlugin(account_name) + self.load_account() def handle_direct(self, pyfile): |