summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/Hoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/Hoster.py')
-rw-r--r--pyload/plugins/Hoster.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyload/plugins/Hoster.py b/pyload/plugins/Hoster.py
index 68eb32baa..b59d11a9c 100644
--- a/pyload/plugins/Hoster.py
+++ b/pyload/plugins/Hoster.py
@@ -64,7 +64,7 @@ class Hoster(Base):
self.ocr = None #captcha reader instance
#: account handler instance, see :py:class:`Account`
- self.account = self.core.accountManager.selectAccount(self.__name__, self.user)
+ self.account = self.core.accountManager.selectAccount(self.__name__, self.owner)
#: premium status
self.premium = False
@@ -95,6 +95,12 @@ class Hoster(Base):
self.init()
+ @property
+ def user(self):
+ self.logDebug("Deprecated usage of self.user -> use self.account.loginname")
+ if self.account:
+ return self.account.loginname
+
def getMultiDL(self):
return self.limitDL <= 0