diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 21:10:38 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 21:10:38 +0100 |
commit | d99e7039744c67ddbe56a09eeaa636f7d62e98a8 (patch) | |
tree | a2f36bbf42c727ac911893e95295920fad6ae869 /module | |
parent | [SimpleHoster][SimpleCrypter] Bump up __version__ (diff) | |
download | pyload-d99e7039744c67ddbe56a09eeaa636f7d62e98a8.tar.xz |
[XFSPHoster] Improve ERROR_PATTERN
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/EasybytezCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/FileomCom.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/XFSPHoster.py | 4 |
3 files changed, 2 insertions, 6 deletions
diff --git a/module/plugins/hoster/EasybytezCom.py b/module/plugins/hoster/EasybytezCom.py index df866de52..82864fd1f 100644 --- a/module/plugins/hoster/EasybytezCom.py +++ b/module/plugins/hoster/EasybytezCom.py @@ -22,8 +22,6 @@ class EasybytezCom(XFSPHoster): OFFLINE_PATTERN = r'>File not available' LINK_PATTERN = r'(http://(\w+\.(easybytez|easyload|ezbytez|zingload)\.(com|to)|\d+\.\d+\.\d+\.\d+)/files/\d+/\w+/.+?)["\'<]' - OVR_LINK_PATTERN = r'<h2>Download Link</h2>\s*<textarea[^>]*>([^<]+)' - ERROR_PATTERN = r'(?:class=["\']err["\'][^>]*>|<Center><b>)(.*?)</' getInfo = create_getInfo(EasybytezCom) diff --git a/module/plugins/hoster/FileomCom.py b/module/plugins/hoster/FileomCom.py index 60ab5c5f9..ad8fcac4b 100644 --- a/module/plugins/hoster/FileomCom.py +++ b/module/plugins/hoster/FileomCom.py @@ -25,8 +25,6 @@ class FileomCom(XFSPHoster): FILE_NAME_PATTERN = r'Filename: <span>(?P<N>.+?)<' FILE_SIZE_PATTERN = r'File Size: <span class="size">(?P<S>[\d.,]+) (?P<U>[\w^_]+)' - ERROR_PATTERN = r'class=["\']err["\'][^>]*>(.*?)(?:\'|</)' - LINK_PATTERN = r'var url2 = \'(.+?)\';' diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py index 00666ec2b..edbe8a0a2 100644 --- a/module/plugins/internal/XFSPHoster.py +++ b/module/plugins/internal/XFSPHoster.py @@ -17,7 +17,7 @@ from module.utils import html_unescape class XFSPHoster(SimpleHoster): __name__ = "XFSPHoster" __type__ = "hoster" - __version__ = "0.05" + __version__ = "0.06" __pattern__ = None @@ -51,7 +51,7 @@ class XFSPHoster(SimpleHoster): RECAPTCHA_PATTERN = None SOLVEMEDIA_PATTERN = None - ERROR_PATTERN = r'class=["\']err["\'][^>]*>(.+?)</' + ERROR_PATTERN = r'(?:class=["\']err["\'][^>]*>|<[Cc]enter><b>)(.+?)(?:["\']|</)' def setup(self): |