summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/YibaishiwuCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/YibaishiwuCom.py')
-rw-r--r--module/plugins/accounts/YibaishiwuCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/YibaishiwuCom.py b/module/plugins/accounts/YibaishiwuCom.py
index 4a0c72c34..1894258a3 100644
--- a/module/plugins/accounts/YibaishiwuCom.py
+++ b/module/plugins/accounts/YibaishiwuCom.py
@@ -36,9 +36,9 @@ class YibaishiwuCom(Account):
#self.relogin(user)
html = req.load("http://115.com/", decode=True)
- found = re.search(self.ACCOUNT_INFO_PATTERN, html, re.S)
- premium = True if (found and 'is_vip: 1' in found.group(1)) else False
- validuntil = trafficleft = (-1 if found else 0)
+ m = re.search(self.ACCOUNT_INFO_PATTERN, html, re.S)
+ premium = True if (m and 'is_vip: 1' in m.group(1)) else False
+ validuntil = trafficleft = (-1 if m else 0)
return dict({"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium})
def login(self, user, data, req):