From 6811adcc768577d6d5deafdc305d93be2e64ac95 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 8 Dec 2013 19:50:05 +0100 Subject: more fixes for older plugins --- pyload/plugins/Account.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyload/plugins/Account.py b/pyload/plugins/Account.py index d62825cad..4e6f174d2 100644 --- a/pyload/plugins/Account.py +++ b/pyload/plugins/Account.py @@ -238,6 +238,10 @@ class Account(Base): self.logDebug("Deprecated method .getAccountCookies -> use account.cj") return self.cj + def selectAccount(self, *args): + self.logDebug("Deprecated method .selectAccount() -> use fields directly") + return self.loginname, self.getAccountData() + def getAccountData(self, *args): self.logDebug("Deprecated method .getAccountData -> use fields directly") return {"password": self.password, "premium": self.premium, "trafficleft": self.trafficleft, -- cgit v1.2.3