summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapiduNet.py
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-12 19:24:09 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-12 19:24:09 +0100
commit1867d53987169faef3e15bcf1776ae651f643370 (patch)
treeef795ae59e6554184a7456b9f3b6f2debfc7f991 /module/plugins/accounts/RapiduNet.py
parent[SimpleCrypter] fix #2188 (diff)
downloadpyload-1867d53987169faef3e15bcf1776ae651f643370.tar.xz
[RapiduNet] fix #2146
Diffstat (limited to 'module/plugins/accounts/RapiduNet.py')
-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}