summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/RapiduNet.py6
1 files changed, 3 insertions, 3 deletions
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: <b>\w+ \((\d+)'
- TRAFFIC_LEFT_PATTERN = r'class="tipsyS"><b>(.+?)<'
+ TRAFFIC_LEFT_PATTERN = r'class="tipsyS"><b>([\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}