summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 23:10:50 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 23:10:50 +0100
commit483febe8e8711e644593ca758d1ba4c02c4dfde7 (patch)
treea2178b829600912fd9c843d28e67e1fe1bdfd571
parentCode cosmetics (diff)
downloadpyload-483febe8e8711e644593ca758d1ba4c02c4dfde7.tar.xz
[XFSPAccount] Improve VALID_UNTIL_PATTERN
-rw-r--r--module/plugins/internal/XFSPAccount.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSPAccount.py b/module/plugins/internal/XFSPAccount.py
index 574bdd920..7b6215653 100644
--- a/module/plugins/internal/XFSPAccount.py
+++ b/module/plugins/internal/XFSPAccount.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import parseHtmlForm, set_cookies
class XFSPAccount(Account):
__name__ = "XFSPAccount"
__type__ = "account"
- __version__ = "0.17"
+ __version__ = "0.18"
__description__ = """XFileSharingPro account plugin"""
__license__ = "GPLv3"
@@ -34,7 +34,7 @@ class XFSPAccount(Account):
COOKIES = [(HOSTER_NAME, "lang", "english")] #: or list of tuples [(domain, name, value)]
- VALID_UNTIL_PATTERN = r'>Premium.[Aa]ccount expire:.*?([^><]+)</(b|strong)>'
+ VALID_UNTIL_PATTERN = r'>Premium.[Aa]ccount expire:.*?([^><]+)</(b|div|strong)>'
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
@@ -64,7 +64,7 @@ class XFSPAccount(Account):
m = re.search(self.VALID_UNTIL_PATTERN, html)
if m:
- expiredate = m.group(1)
+ expiredate = m.group(1).strip()
self.logDebug("Expire date: " + expiredate)
try: