summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilepostCom.py
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-04-14 01:49:49 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-04-14 01:49:49 +0200
commit20d88924fd6a3a5d15b521441a414aa3f8121e79 (patch)
tree2477c8c150048bdc580a6fe6000eb62d6db89b6f /module/plugins/hoster/FilepostCom.py
parentUpdate DepositfilesCom.py (diff)
parent[UnSkipOnFail] Typo (diff)
downloadpyload-20d88924fd6a3a5d15b521441a414aa3f8121e79.tar.xz
Merge pull request #1 from pyload/stable
Sync
Diffstat (limited to 'module/plugins/hoster/FilepostCom.py')
-rw-r--r--module/plugins/hoster/FilepostCom.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/module/plugins/hoster/FilepostCom.py b/module/plugins/hoster/FilepostCom.py
index 78960dc6d..2a9e3dc26 100644
--- a/module/plugins/hoster/FilepostCom.py
+++ b/module/plugins/hoster/FilepostCom.py
@@ -79,20 +79,11 @@ class FilepostCom(SimpleHoster):
self.logDebug(u"RECAPTCHA: %s : %s : %s" % (
captcha_key, post_dict['recaptcha_challenge_field'], post_dict['recaptcha_response_field']))
- download_url = self.getJsonResponse(get_dict, post_dict, 'link')
- if download_url:
- if i:
- self.correctCaptcha()
- break
- elif i:
- self.invalidCaptcha()
+ self.link = self.getJsonResponse(get_dict, post_dict, 'link')
else:
self.fail(_("Invalid captcha"))
- # Download
- self.download(download_url)
-
def getJsonResponse(self, get_dict, post_dict, field):
res = json_loads(self.load('https://filepost.com/files/get/', get=get_dict, post=post_dict))