From e8d1f1e6083dd7caa30dce97eeb5c6005c9f79f9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 4 Nov 2014 13:03:24 +0100 Subject: [OneFichierCom] Fixed account plugin --- module/plugins/internal/XFSAccount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal') diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index aa8a8ace1..6a3b3605e 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -56,12 +56,12 @@ class XFSAccount(Account): def loadAccountInfo(self, user, req): - html = req.load(self.HOSTER_URL, get={'op': "my_account"}, decode=True) - validuntil = None trafficleft = None premium = None + html = req.load(self.HOSTER_URL, get={'op': "my_account"}, decode=True) + if hasattr(self, "PREMIUM_PATTERN"): premium = True if re.search(self.PREMIUM_PATTERN, html) else False -- cgit v1.2.3