diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-12 19:24:09 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-12 19:24:09 +0100 |
commit | 1867d53987169faef3e15bcf1776ae651f643370 (patch) | |
tree | ef795ae59e6554184a7456b9f3b6f2debfc7f991 /module | |
parent | [SimpleCrypter] fix #2188 (diff) | |
download | pyload-1867d53987169faef3e15bcf1776ae651f643370.tar.xz |
[RapiduNet] fix #2146
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/accounts/RapiduNet.py | 6 |
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} |