diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:49:37 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:49:37 +0100 |
commit | e17f58459d8d4e57ed447823a988768bf09f2703 (patch) | |
tree | 62c393fd0aecd3dec4ea1d0eaaa8142e3146e44f /module/plugins/accounts/ZeveraCom.py | |
parent | [RehostTo] Fix typo (2) (diff) | |
download | pyload-e17f58459d8d4e57ed447823a988768bf09f2703.tar.xz |
[ZeveraCom] Improve
Diffstat (limited to 'module/plugins/accounts/ZeveraCom.py')
-rw-r--r-- | module/plugins/accounts/ZeveraCom.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/module/plugins/accounts/ZeveraCom.py b/module/plugins/accounts/ZeveraCom.py index d679f5aad..d863e4b37 100644 --- a/module/plugins/accounts/ZeveraCom.py +++ b/module/plugins/accounts/ZeveraCom.py @@ -8,7 +8,7 @@ from module.plugins.Account import Account class ZeveraCom(Account): __name__ = "ZeveraCom" __type__ = "account" - __version__ = "0.23" + __version__ = "0.24" __description__ = """Zevera.com account plugin""" __license__ = "GPLv3" @@ -16,9 +16,22 @@ class ZeveraCom(Account): ("Walter Purcaro", "vuolter@gmail.com")] - API_URL = "http://api.zevera.com/jDownloader.ashx" + HOSTER_DOMAIN = "zevera.com" + + + def __init__(self, manager, accounts): #@TODO: remove in 0.4.10 + self.init() + return super(ZeveraCom, self).__init__(manager, accounts) + def init(self): + if not self.HOSTER_DOMAIN: + self.logError(_("Missing HOSTER_DOMAIN")) + + if not self.API_URL: + self.API_URL = "http://api.%s/jDownloader.ashx" % (self.HOSTER_DOMAIN or "") + + def loadAccountInfo(self, user, req): validuntil = None trafficleft = None |