diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:11:29 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:17:03 +0200 |
commit | 4da90891eb2544ac15a7d512aba8cb357f68ee5f (patch) | |
tree | 84eec3f9f27a880df052da43fb3a6a8112b39c24 /module/plugins/hoster/FileserveCom.py | |
parent | Fix and improve plugins logging (diff) | |
download | pyload-4da90891eb2544ac15a7d512aba8cb357f68ee5f.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FileserveCom.py')
-rw-r--r-- | module/plugins/hoster/FileserveCom.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py index 0f8372cf7..b3f197736 100644 --- a/module/plugins/hoster/FileserveCom.py +++ b/module/plugins/hoster/FileserveCom.py @@ -15,7 +15,7 @@ def checkFile(plugin, urls): html = getURL(plugin.URLS[1], post={"urls": "\n".join(urls)}, decode=True) file_info = [] - for li in re.finditer(plugin.LINKCHECK_TR, html, re.DOTALL): + for li in re.finditer(plugin.LINKCHECK_TR, html, re.S): try: cols = re.findall(plugin.LINKCHECK_TD, li.group(1)) if cols: @@ -160,12 +160,10 @@ class FileserveCom(Hoster): for _ in xrange(5): challenge, code = recaptcha.challenge(captcha_key) - response = json_loads(self.load(self.URLS[2], post={'recaptcha_challenge_field': challenge, 'recaptcha_response_field': code, 'recaptcha_shortencode_field': self.file_id})) - self.logDebug("reCaptcha response : %s" % response) if not response['success']: self.invalidCaptcha() else: |