diff options
author | 2015-12-14 16:47:49 +0100 | |
---|---|---|
committer | 2015-12-27 21:22:11 +0100 | |
commit | 8fe2fa85605c091369c8e69b36d1cded2cd9bbe0 (patch) | |
tree | a0d5745b1168fe887568fc6af1004c19ce44f4b6 /module/plugins/hoster/FilepostCom.py | |
parent | [ExternalScripts] Update and fix (diff) | |
download | pyload-8fe2fa85605c091369c8e69b36d1cded2cd9bbe0.tar.xz |
Update hosters (1)
Diffstat (limited to 'module/plugins/hoster/FilepostCom.py')
-rw-r--r-- | module/plugins/hoster/FilepostCom.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/module/plugins/hoster/FilepostCom.py b/module/plugins/hoster/FilepostCom.py index abd5c4d23..963bdbac4 100644 --- a/module/plugins/hoster/FilepostCom.py +++ b/module/plugins/hoster/FilepostCom.py @@ -3,15 +3,15 @@ import re import time -from module.plugins.internal.utils import json +from module.plugins.internal.misc import json from module.plugins.captcha.ReCaptcha import ReCaptcha -from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo +from module.plugins.internal.SimpleHoster import SimpleHoster class FilepostCom(SimpleHoster): __name__ = "FilepostCom" __type__ = "hoster" - __version__ = "0.38" + __version__ = "0.39" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(?:filepost\.com/files|fp\.io)/(?P<ID>[^/]+)' @@ -78,7 +78,7 @@ class FilepostCom(SimpleHoster): if not self.link: #: Solve recaptcha - recaptcha = ReCaptcha(self) + recaptcha = ReCaptcha(pyfile) post_dict['recaptcha_response_field'], post_dict['recaptcha_challenge_field'] = recaptcha.challenge(captcha_key) self.link = self.get_json_response(get_dict, post_dict, 'link') @@ -117,6 +117,3 @@ class FilepostCom(SimpleHoster): self.error(_("JSON %s 2") % field) return res['js']['answer'][field] - - -getInfo = create_getInfo(FilepostCom) |