summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/UpstoreNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-03 17:40:27 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-03 17:40:27 +0200
commitcdd7d2db6b372a38a6b4281f19881b95aa5b7a50 (patch)
tree9b9e29d2f85e99ef558f49d3c33ebad6ff69552c /pyload/plugins/hoster/UpstoreNet.py
parentChanged XFileSharingPro and UpdateManager to internal plugins (diff)
parent[Dev-Host] Improve patterns a bit (diff)
downloadpyload-cdd7d2db6b372a38a6b4281f19881b95aa5b7a50.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: pyload/plugins/ocr/GigasizeCom.py pyload/plugins/ocr/LinksaveIn.py pyload/plugins/ocr/NetloadIn.py pyload/plugins/ocr/ShareonlineBiz.py
Diffstat (limited to 'pyload/plugins/hoster/UpstoreNet.py')
-rw-r--r--pyload/plugins/hoster/UpstoreNet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugins/hoster/UpstoreNet.py b/pyload/plugins/hoster/UpstoreNet.py
index d812d292d..e1ec93b99 100644
--- a/pyload/plugins/hoster/UpstoreNet.py
+++ b/pyload/plugins/hoster/UpstoreNet.py
@@ -39,9 +39,9 @@ class UpstoreNet(SimpleHoster):
# STAGE 2: solv captcha and wait
# first get the infos we need: recaptcha key and wait time
recaptcha = ReCaptcha(self)
- if not recaptcha.detect_key(self.html):
- self.parseError("could not find recaptcha pattern")
- self.logDebug("Using captcha key " + recaptcha.recaptcha_key)
+ if recaptcha.detect_key() is None:
+ self.parseError("ReCaptcha key not found")
+ self.logDebug("Using captcha key " + recaptcha.key)
# try the captcha 5 times
for i in xrange(5):
m = re.search(self.WAIT_PATTERN, self.html)