diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-11-24 22:14:46 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-11-24 22:14:46 +0100 |
commit | 81128986d82f27f87f7a7cb2dc6f61857da884c3 (patch) | |
tree | e43558524e9b8b79cb44dd016105375925bb4fe7 /module/plugins/hoster | |
parent | Merge pull request #2137 from thadrien/pull-request-DropboxCom (diff) | |
download | pyload-81128986d82f27f87f7a7cb2dc6f61857da884c3.tar.xz |
[UpleaCom] fix #2170
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/UpleaCom.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py index d1656556b..c552adc0f 100644 --- a/module/plugins/hoster/UpleaCom.py +++ b/module/plugins/hoster/UpleaCom.py @@ -9,7 +9,7 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo class UpleaCom(XFSHoster): __name__ = "UpleaCom" __type__ = "hoster" - __version__ = "0.15" + __version__ = "0.16" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' @@ -36,7 +36,7 @@ class UpleaCom(XFSHoster): LINK_PATTERN = r'"(https?://\w+\.uplea\.com/anonym/.*?)"' PREMIUM_ONLY_PATTERN = r'You need to have a Premium subscription to download this file' - WAIT_PATTERN = r'timeText: ?([\d.]+),' + WAIT_PATTERN = r'timeText: ?(\d+),' STEP_PATTERN = r'<a href="(/step/.+)">' @@ -54,8 +54,7 @@ class UpleaCom(XFSHoster): self.data = self.load(urlparse.urljoin("http://uplea.com/", m.group(1))) m = re.search(self.WAIT_PATTERN, self.data) - if m is not None: - self.log_debug("Waiting %s seconds" % m.group(1)) + if m: self.wait(m.group(1), True) self.retry() @@ -64,7 +63,10 @@ class UpleaCom(XFSHoster): self.error(_("LINK_PATTERN not found")) self.link = m.group(1) - self.wait(15) + + m = re.search(r".ulCounter\({'timer':(\d+)}\)", self.data) + if m: + self.wait(m.group(1)) getInfo = create_getInfo(UpleaCom) |