summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 22:43:17 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 22:43:17 +0200
commit3353ea228835ffa96cc73d5b5e23f6d92ba84203 (patch)
treec593079745e1a65c39bfa59b3a3b6a07e1b05486 /module/plugins/internal/Account.py
parent[OpenloadIo] Cleanup (diff)
downloadpyload-3353ea228835ffa96cc73d5b5e23f6d92ba84203.tar.xz
Update hoster plugins
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r--module/plugins/internal/Account.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index 5c76d4ccb..918c32c42 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -12,7 +12,7 @@ from module.utils import compare_time, lock, parseFileSize as parse_size
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.50"
+ __version__ = "0.51"
__status__ = "testing"
__description__ = """Base account plugin"""
@@ -187,14 +187,14 @@ class Account(Plugin):
return self.info
- def get_login(self, key=None):
+ def get_login(self, key=None, default=None):
d = self.get_info()['login']
- return d.get(key) or d
+ return d.get(key, default) if key or d
- def get_data(self, key=None):
+ def get_data(self, key=None, default=None):
d = self.get_info()['data']
- return d.get(key) or d
+ return d.get(key, default) if key or d
def _grab_info(self):