summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapidfileshareNet.py
diff options
context:
space:
mode:
authorGravatar guidobelix <guidobelix@hotmail.it> 2014-10-15 23:20:54 +0200
committerGravatar guidobelix <guidobelix@hotmail.it> 2014-10-15 23:20:54 +0200
commitf6d78488cfb56da8afac826a353626b56c942753 (patch)
treed5e8358af0ad742e6071426b151b5863e365a32b /module/plugins/accounts/RapidfileshareNet.py
parent[XFSPAccount] Fix TRAFFIC_LEFT_PATTERN (diff)
downloadpyload-f6d78488cfb56da8afac826a353626b56c942753.tar.xz
[RapidfileshareNet] Improve TRAFFIC_LEFT_PATTERN
Improved TRAFFIC_LEFT_PATTERN to be able to read Units, regardless of #798.
Diffstat (limited to 'module/plugins/accounts/RapidfileshareNet.py')
-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>'
+