summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/HotfileCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-19 00:21:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-19 00:21:18 +0200
commit664524c08bcd62214ae91e20d9624bf8e6827c2c (patch)
tree03e59c4b0bd03b1740778a283f9928d5d5159fdb /module/plugins/hoster/HotfileCom.py
parentchange config path fix (diff)
downloadpyload-664524c08bcd62214ae91e20d9624bf8e6827c2c.tar.xz
fileserv, freakshare fix
Diffstat (limited to 'module/plugins/hoster/HotfileCom.py')
-rw-r--r--module/plugins/hoster/HotfileCom.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hoster/HotfileCom.py b/module/plugins/hoster/HotfileCom.py
index d5d255b1a..78fd14cf6 100644
--- a/module/plugins/hoster/HotfileCom.py
+++ b/module/plugins/hoster/HotfileCom.py
@@ -91,12 +91,11 @@ class HotfileCom(Hoster):
form_posts = re.findall(r"<input\stype=hidden\sname=(\S*)\svalue=(\S*)>", form_content)
self.html[1] = self.load(self.pyfile.url, post=form_posts, cookies=True)
-
- re_captcha = ReCaptcha(self)
-
+
challenge = re.search(r"http://api\.recaptcha\.net/challenge\?k=([0-9A-Za-z]+)", self.html[1])
if challenge:
+ re_captcha = ReCaptcha(self)
challenge, result = re_captcha.challenge(challenge.group(1))
url = re.search(r'<form action="(/dl/[^"]+)', self.html[1] )