From 58125cc90a78b67093b8213247ea647dd67dd9ca Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 18 Dec 2015 06:09:04 +0100 Subject: Spare code fixes --- module/plugins/hoster/RapidgatorNet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/RapidgatorNet.py') 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): -- cgit v1.2.3