diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-16 23:01:43 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-16 23:01:43 +0100 |
commit | f633832bbfce04f4b1b83e59c02701483ef03525 (patch) | |
tree | 5e87fc941778573e537b54d7f63da1cdc5fe6ee4 | |
parent | [Keep2shareCc] Fix captcha_url (diff) | |
download | pyload-f633832bbfce04f4b1b83e59c02701483ef03525.tar.xz |
[XFSHoster] Improve SIZE_PATTERN
-rw-r--r-- | module/plugins/internal/XFSHoster.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index 3ae0692dc..bb4baa274 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -16,7 +16,7 @@ from module.utils import html_unescape class XFSHoster(SimpleHoster): __name__ = "XFSHoster" __type__ = "hoster" - __version__ = "0.27" + __version__ = "0.28" __pattern__ = r'^unmatchable$' @@ -36,7 +36,7 @@ class XFSHoster(SimpleHoster): MULTI_HOSTER = True #@NOTE: Should be default to False for safe, but I'm lazy... NAME_PATTERN = r'(>Filename:</b></td><td nowrap>|name="fname" value="|<span class="name">)(?P<N>.+?)(\s*<|")' - SIZE_PATTERN = r'(>Size:</b></td><td>|>File:.*>|<span class="size">)(?P<S>[\d.,]+)\s*(?P<U>[\w^_]+)' + SIZE_PATTERN = r'(>Size:</b></td><td>|>File:.*>|</font>\s*\(|<span class="size">)(?P<S>[\d.,]+)\s*(?P<U>[\w^_]+)' OFFLINE_PATTERN = r'>\s*\w+ (Not Found|file (was|has been) removed)' TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)' @@ -199,13 +199,7 @@ class XFSHoster(SimpleHoster): def checkErrors(self): - m = re.search(self.PREMIUM_ONLY_PATTERN, self.html) - if m: - self.info['error'] = "premium-only" - return - m = re.search(self.ERROR_PATTERN, self.html) - if m is None: self.errmsg = None else: |