summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RapidgatorNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-18 06:09:04 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:37:54 +0100
commit58125cc90a78b67093b8213247ea647dd67dd9ca (patch)
tree69ae964377cbd45430bb78ade3930b820e867a55 /module/plugins/hoster/RapidgatorNet.py
parent[OCR] self.image -> self.img (diff)
downloadpyload-58125cc90a78b67093b8213247ea647dd67dd9ca.tar.xz
Spare code fixes
Diffstat (limited to 'module/plugins/hoster/RapidgatorNet.py')
-rw-r--r--module/plugins/hoster/RapidgatorNet.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py
index 3966275e0..a4f6f4190 100644
--- a/module/plugins/hoster/RapidgatorNet.py
+++ b/module/plugins/hoster/RapidgatorNet.py
@@ -150,9 +150,10 @@ class RapidgatorNet(SimpleHoster):
def handle_captcha(self):
for klass in (AdsCaptcha, ReCaptcha, SolveMedia):
- inst = klass(self.pyfile)
- if inst.detect_key():
- return inst
+ captcha = klass(self.pyfile)
+ if captcha.detect_key():
+ self.captcha = captcha
+ return captcha
def get_json_response(self, url):