diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-03 14:38:22 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-03 14:38:22 +0100 |
commit | be05dce2da77bca4613efbdfb0f6357a983e6e1c (patch) | |
tree | 7862d4ea889c15511003d6b378c57d55b1fd6833 /module/plugins/hoster | |
parent | [ShareonlineBiz] Fix recaptcha (diff) | |
download | pyload-be05dce2da77bca4613efbdfb0f6357a983e6e1c.tar.xz |
Fix https://github.com/pyload/pyload/issues/943
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/CrockoCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/FilefactoryCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/LoadTo.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/RemixshareCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/UpleaCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/UpstoreNet.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/CrockoCom.py b/module/plugins/hoster/CrockoCom.py index 356a16c6b..e5f94800b 100644 --- a/module/plugins/hoster/CrockoCom.py +++ b/module/plugins/hoster/CrockoCom.py @@ -37,7 +37,7 @@ class CrockoCom(SimpleHoster): for _i in xrange(5): m = re.search(self.CAPTCHA_PATTERN, self.html) if m: - url, wait_time = 'http://crocko.com' + m.group(1), m.group(2) + url, wait_time = 'http://crocko.com' + m.group(1), int(m.group(2)) self.wait(wait_time) self.html = self.load(url) else: diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py index 349875f75..ada498a51 100644 --- a/module/plugins/hoster/FilefactoryCom.py +++ b/module/plugins/hoster/FilefactoryCom.py @@ -56,7 +56,7 @@ class FilefactoryCom(SimpleHoster): m = re.search(self.WAIT_PATTERN, self.html) if m: - self.wait(m.group(1)) + self.wait(int(m.group(1))) self.download(dl_link, disposition=True) diff --git a/module/plugins/hoster/LoadTo.py b/module/plugins/hoster/LoadTo.py index 4fad6f147..4e55496c6 100644 --- a/module/plugins/hoster/LoadTo.py +++ b/module/plugins/hoster/LoadTo.py @@ -49,7 +49,7 @@ class LoadTo(SimpleHoster): # Set Timer - may be obsolete m = re.search(self.WAIT_PATTERN, self.html) if m: - self.wait(m.group(1)) + self.wait(int(m.group(1))) # Load.to is using solvemedia captchas since ~july 2014: solvemedia = SolveMedia(self) diff --git a/module/plugins/hoster/RemixshareCom.py b/module/plugins/hoster/RemixshareCom.py index ca1e2e342..ed171895e 100644 --- a/module/plugins/hoster/RemixshareCom.py +++ b/module/plugins/hoster/RemixshareCom.py @@ -52,7 +52,7 @@ class RemixshareCom(SimpleHoster): seconds = re.search(self.WAIT_PATTERN, self.html) if seconds: self.logDebug("Wait " + seconds.group(1)) - self.wait(seconds.group(1)) + self.wait(int(seconds.group(1))) # Finally start downloading... self.download(dl_url, disposition=True) diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py index 7e4b3b0b1..c9b32c196 100644 --- a/module/plugins/hoster/UpleaCom.py +++ b/module/plugins/hoster/UpleaCom.py @@ -46,7 +46,7 @@ class UpleaCom(XFSHoster): m = re.search(self.WAIT_PATTERN, self.html) if m: - self.wait(m.group(1), True) + self.wait(int(m.group(1)), True) self.retry() m = re.search(self.LINK_PATTERN, self.html) diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py index 8c93c4d61..239cc92f5 100644 --- a/module/plugins/hoster/UpstoreNet.py +++ b/module/plugins/hoster/UpstoreNet.py @@ -46,7 +46,7 @@ class UpstoreNet(SimpleHoster): m = re.search(self.WAIT_PATTERN, self.html) if m is None: self.error(_("Wait pattern not found")) - wait_time = m.group(1) + wait_time = int(m.group(1)) # then, do the waiting self.wait(wait_time) |