diff options
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r-- | module/plugins/internal/XFSAccount.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |