diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-07 23:41:51 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-07 23:41:51 +0100 |
commit | a7e898fd5f5f3d58def57bc1c32b810f137fbfb9 (patch) | |
tree | f1ccccf36ee5c57d4e7f66002ffbc5b54d6be8df /module/plugins/hoster | |
parent | [OneFichierCom] Tryout to fix waiting error (diff) | |
download | pyload-a7e898fd5f5f3d58def57bc1c32b810f137fbfb9.tar.xz |
[UpleaCom] Update patterns
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/UpleaCom.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py index 4b253d2ce..409d7b4ca 100644 --- a/module/plugins/hoster/UpleaCom.py +++ b/module/plugins/hoster/UpleaCom.py @@ -2,13 +2,15 @@ import re +from urlparse import urljoin + from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo class UpleaCom(XFSHoster): __name__ = "UpleaCom" __type__ = "hoster" - __version__ = "0.03" + __version__ = "0.04" __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' @@ -19,8 +21,10 @@ class UpleaCom(XFSHoster): HOSTER_DOMAIN = "uplea.com" - INFO_PATTERN = r'class="l download-filename">\s<span.*?>(?P<N>.+)</span>\s<span.*?>(?P<S>[\d.]+) (?P<U>[\w]).*?</span>' - OFFLINE_PATTERN = r'You followed an invalid or expired link' + NAME_PATTERN = r'class="agmd size18">(?P<N>.+?)<' + SIZE_PATTERN = r'size14">(?P<S>[\d.,]+) (?P<U>[\w^_])</span>' + + OFFLINE_PATTERN = r'>You followed an invalid or expired link' LINK_PATTERN = r'"(http?://\w+\.uplea\.com/anonym/.*?)"' WAIT_PATTERN = r'timeText:([\d.]+),' @@ -38,7 +42,7 @@ class UpleaCom(XFSHoster): if m is None: self.error("VARS_PATTERN not found") - self.html = self.load('http://uplea.com%s' % m.groups(1)) + self.html = self.load(urljoin("http://uplea.com/", m.groups(1))) m = re.search(self.WAIT_PATTERN, self.html) if m: |