diff options
author | 2015-04-10 14:36:59 +0200 | |
---|---|---|
committer | 2015-04-10 14:36:59 +0200 | |
commit | 1e6846b3c435b0d71be83670d09bd019a84823ec (patch) | |
tree | e7a93e2a5583e50a1a6a8bff4ac1b84e4a230782 /module/plugins/hoster/FilepostCom.py | |
parent | [SimpleHoster] Fix https://github.com/pyload/pyload/issues/1341 (diff) | |
download | pyload-1e6846b3c435b0d71be83670d09bd019a84823ec.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilepostCom.py')
-rw-r--r-- | module/plugins/hoster/FilepostCom.py | 11 |
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)) |