summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-15 13:42:32 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-15 13:42:32 +0200
commit268b16c9ecc588e6e884749e3fe715431367d1c9 (patch)
treedea46037f44465b4ac31b8d6285410095629bbac /module
parentNew hoster NowVideoAt (diff)
downloadpyload-268b16c9ecc588e6e884749e3fe715431367d1c9.tar.xz
[XFSPAccount] Fix TRAFFIC_LEFT_PATTERN
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/XFSPAccount.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSPAccount.py b/module/plugins/internal/XFSPAccount.py
index 9191b71a0..f75422ca1 100644
--- a/module/plugins/internal/XFSPAccount.py
+++ b/module/plugins/internal/XFSPAccount.py
@@ -13,7 +13,7 @@ from module.utils import parseFileSize
class XFSPAccount(Account):
__name__ = "XFSPAccount"
__type__ = "account"
- __version__ = "0.11"
+ __version__ = "0.12"
__description__ = """XFileSharingPro account plugin"""
__license__ = "GPLv3"
@@ -27,7 +27,7 @@ class XFSPAccount(Account):
VALID_UNTIL_PATTERN = r'>Premium.[Aa]ccount expire:.*?<b>(.+?)</b>'
- TRAFFIC_LEFT_PATTERN = r'>Traffic available today:.*?<b>\s*(?P<S>[\d.,]+)\s*(?P<U>[\w^_]+)\s*</b>'
+ TRAFFIC_LEFT_PATTERN = r'>Traffic available today:.*?<b>\s*(?P<S>[\d.,]+)\s*(?:(?P<U>[\w^_]+)\s*)?</b>'
TRAFFIC_LEFT_UNIT = "MB" #: used only if no group <U> was found
LOGIN_FAIL_PATTERN = r'>(Incorrect Login or Password|Error<)'