summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/OboomCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-20 18:43:15 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:46:01 +0100
commit5deded62d94c04be64d34f6b67d07803eea9b6bf (patch)
treea33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/hoster/OboomCom.py
parentUpdate addons (diff)
downloadpyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/OboomCom.py')
-rw-r--r--module/plugins/hoster/OboomCom.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hoster/OboomCom.py b/module/plugins/hoster/OboomCom.py
index 340ca170d..bb823256f 100644
--- a/module/plugins/hoster/OboomCom.py
+++ b/module/plugins/hoster/OboomCom.py
@@ -47,9 +47,7 @@ class OboomCom(Hoster):
self.download("http://%s/1.0/dlh" % self.download_domain, get={'ticket': self.download_ticket, 'http_errors': 0})
- def load_url(self, url, get=None):
- if get is None:
- get = {}
+ def load_url(self, url, get={}):
return json.loads(self.load(url, get))
@@ -74,8 +72,8 @@ class OboomCom(Hoster):
def solve_captcha(self):
- recaptcha = ReCaptcha(self.pyfile)
- response, challenge = recaptcha.challenge(self.RECAPTCHA_KEY)
+ self.captcha = ReCaptcha(self.pyfile)
+ response, challenge = self.captcha.challenge(self.RECAPTCHA_KEY)
apiUrl = "http://www.oboom.com/1.0/download/ticket"
params = {'recaptcha_challenge_field': challenge,