summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 17:44:49 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 17:44:49 +0200
commitb9cd4eb41e9b8753bca4b5a8334d7242eab98371 (patch)
treefd67d8f580a926098c6d478f2b65256014bbcce3 /module
parent[XFileSharingPro] Fixes (diff)
downloadpyload-b9cd4eb41e9b8753bca4b5a8334d7242eab98371.tar.xz
[SimpleCrypter] Fix account routine
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/SimpleCrypter.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index fe644cbda..3c1dc3244 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):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.14"
+ __version__ = "0.15"
__pattern__ = None
@@ -64,12 +64,15 @@ class SimpleCrypter(Crypter):
def init(self):
- self.account = self.core.accountManager.getAccountPlugin((self.__name__ + ".py").replace("Folder.py", ""))
+ account_name = (self.__name__ + ".py").replace("Folder.py", "").replace(".py", "")
+ account = self.core.accountManager.getAccountPlugin(account_name)
- if self.account and self.account.canUse():
- self.user, data = self.account.selectAccount()
- self.req = self.account.getAccountRequest(self.user)
- self.premium = self.account.isPremium(self.user)
+ if account and account.canUse():
+ self.user, data = account.selectAccount()
+ self.req = account.getAccountRequest(self.user)
+ self.premium = account.isPremium(self.user)
+
+ self.account = account
def prepare(self):