diff options
author | 2013-08-08 17:38:35 +0200 | |
---|---|---|
committer | 2013-08-08 17:38:35 +0200 | |
commit | 52f6599748ef61219112111dc5db71f3342b076d (patch) | |
tree | e3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/plugins/Hoster.py | |
parent | MultiHosters: moved settings to addon plugins. (diff) | |
download | pyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz |
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/plugins/Hoster.py')
-rw-r--r-- | pyload/plugins/Hoster.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pyload/plugins/Hoster.py b/pyload/plugins/Hoster.py index 44b10899d..b3be7a9e9 100644 --- a/pyload/plugins/Hoster.py +++ b/pyload/plugins/Hoster.py @@ -82,17 +82,13 @@ class Hoster(Base): self.ocr = None #captcha reader instance #: account handler instance, see :py:class:`Account` - self.account = self.core.accountManager.getAccountForPlugin(self.__name__) + self.account = self.core.accountManager.selectAccount(self.__name__, self.user) #: premium status self.premium = False - #: username/login - self.user = None - if self.account and not self.account.isUsable(): self.account = None if self.account: - self.user = self.account.loginname - #: Browser instance, see `network.Browser` + #: Request instance bound to account self.req = self.account.getAccountRequest() # Default: -1, True, True self.chunkLimit, self.limitDL, self.resumeDownload = self.account.getDownloadSettings() |