From 1867d53987169faef3e15bcf1776ae651f643370 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Sat, 12 Dec 2015 20:24:09 +0200 Subject: [RapiduNet] fix #2146 --- module/plugins/accounts/RapiduNet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module') diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py index cde39a361..5a852b906 100644 --- a/module/plugins/accounts/RapiduNet.py +++ b/module/plugins/accounts/RapiduNet.py @@ -10,7 +10,7 @@ from module.plugins.internal.utils import json class RapiduNet(Account): __name__ = "RapiduNet" __type__ = "account" - __version__ = "0.10" + __version__ = "0.11" __status__ = "testing" __description__ = """Rapidu.net account plugin""" @@ -23,7 +23,7 @@ class RapiduNet(Account): VALID_UNTIL_PATTERN = r'>Account: \w+ \((\d+)' - TRAFFIC_LEFT_PATTERN = r'class="tipsyS">(.+?)<' + TRAFFIC_LEFT_PATTERN = r'class="tipsyS">([\d.,]+)\s*([\w^_]*)<' def grab_info(self, user, password, data): @@ -42,7 +42,7 @@ class RapiduNet(Account): m = re.search(self.TRAFFIC_LEFT_PATTERN, html) if m is not None: - trafficleft = self.parse_traffic(m.group(1)) + trafficleft = self.parse_traffic(m.group(1), m.group(2)) return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium} -- cgit v1.2.3