diff options
| author | 2014-10-15 23:20:54 +0200 | |
|---|---|---|
| committer | 2014-10-15 23:20:54 +0200 | |
| commit | f6d78488cfb56da8afac826a353626b56c942753 (patch) | |
| tree | d5e8358af0ad742e6071426b151b5863e365a32b | |
| parent | [XFSPAccount] Fix TRAFFIC_LEFT_PATTERN (diff) | |
| download | pyload-f6d78488cfb56da8afac826a353626b56c942753.tar.xz | |
[RapidfileshareNet]  Improve TRAFFIC_LEFT_PATTERN
 Improved TRAFFIC_LEFT_PATTERN to be able to read Units, regardless of #798.
| -rw-r--r-- | module/plugins/accounts/RapidfileshareNet.py | 5 | 
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>' +      | 
