summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-16 01:05:02 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-16 01:05:02 +0200
commitf16c68a5d8dc06660fb35632043ad04a745fe7b6 (patch)
tree1ad9c4a278777c9ab6ed663ac07c63fe9cd420f5 /module
parentMerge pull request #796 from Guidobelix/TusfilesNet (diff)
parent[RapidfileshareNet] Improve TRAFFIC_LEFT_PATTERN (diff)
downloadpyload-f16c68a5d8dc06660fb35632043ad04a745fe7b6.tar.xz
Merge pull request #799 from Guidobelix/RapidfileshareNet
[RapidfileshareNet] Improve TRAFFIC_LEFT_PATTERN
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/RapidfileshareNet.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapidfileshareNet.py b/module/plugins/accounts/RapidfileshareNet.py
index 56ae80cf0..0b021aea7 100644
--- a/module/plugins/accounts/RapidfileshareNet.py
+++ b/module/plugins/accounts/RapidfileshareNet.py
@@ -6,7 +6,7 @@ from module.plugins.internal.XFSPAccount import XFSPAccount
class RapidfileshareNet(XFSPAccount):
__name__ = "RapidfileshareNet"
__type__ = "account"
- __version__ = "0.01"
+ __version__ = "0.02"
__description__ = """Rapidfileshare.net account plugin"""
__license__ = "GPLv3"
@@ -15,4 +15,5 @@ class RapidfileshareNet(XFSPAccount):
HOSTER_URL = "http://www.rapidfileshare.net/"
- TRAFFIC_LEFT_PATTERN = r'>Traffic available today:</TD><TD><label for="name">(?P<S>.+?)</label></TD></TR>'
+ TRAFFIC_LEFT_PATTERN = r'>Traffic available today:</TD><TD><label for="name">\s*(?P<S>[\d.,]+)\s*(?:(?P<U>[\w^_]+)\s*)?</label></TD></TR>'
+