diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-21 01:51:12 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-21 01:51:12 +0200 |
commit | 52dabdbe4241b6c6af8bc139d480be5ed2af2294 (patch) | |
tree | b09a4313a3b5f6c507dc4e961eee2496f9e7b9cb /module/plugins/internal/XFSAccount.py | |
parent | [Notifier] Fix https://github.com/pyload/pyload/issues/2090 (diff) | |
download | pyload-52dabdbe4241b6c6af8bc139d480be5ed2af2294.tar.xz |
Boring code cosmetics (2)
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r-- | module/plugins/internal/XFSAccount.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index e09f7dddc..1b424c964 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -26,25 +26,25 @@ class XFSAccount(MultiAccount): ("Walter Purcaro", "vuolter@gmail.com" )] - PLUGIN_DOMAIN = None - PLUGIN_URL = None - LOGIN_URL = None + PLUGIN_DOMAIN = None + PLUGIN_URL = None + LOGIN_URL = None - COOKIES = True + COOKIES = True - PREMIUM_PATTERN = r'\(Premium only\)' + PREMIUM_PATTERN = r'\(Premium only\)' - VALID_UNTIL_PATTERN = r'Premium.[Aa]ccount expire:.*?(\d{1,2} [\w^_]+ \d{4})' + VALID_UNTIL_PATTERN = r'Premium.[Aa]ccount expire:.*?(\d{1,2} [\w^_]+ \d{4})' - TRAFFIC_LEFT_PATTERN = r'Traffic available today:.*?<b>\s*(?P<S>[\d.,]+|[Uu]nlimited)\s*(?:(?P<U>[\w^_]+)\s*)?</b>' - TRAFFIC_LEFT_UNIT = "MB" #: Used only if no group <U> was found + TRAFFIC_LEFT_PATTERN = r'Traffic available today:.*?<b>\s*(?P<S>[\d.,]+|[Uu]nlimited)\s*(?:(?P<U>[\w^_]+)\s*)?</b>' + TRAFFIC_LEFT_UNIT = "MB" #: Used only if no group <U> was found LEECH_TRAFFIC_PATTERN = r'Leech Traffic left:<b>.*?(?P<S>[\d.,]+|[Uu]nlimited)\s*(?:(?P<U>[\w^_]+)\s*)?</b>' LEECH_TRAFFIC_UNIT = "MB" #: Used only if no group <U> was found - LOGIN_FAIL_PATTERN = r'Incorrect Login or Password|account was banned|Error<' - LOGIN_BAN_PATTERN = r'>(Your IP.+?)<a' - LOGIN_SKIP_PATTERN = r'op=logout' + LOGIN_FAIL_PATTERN = r'Incorrect Login or Password|account was banned|Error<' + LOGIN_BAN_PATTERN = r'>(Your IP.+?)<a' + LOGIN_SKIP_PATTERN = r'op=logout' def set_xfs_cookie(self): |