summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 23:32:07 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 23:32:07 +0200
commit4365ce1e53f0ffced08e1efa1711f401c2dff29f (patch)
tree766d3cf608e698129a5510495ff3c31fe628dbdd /module
parentMerge pull request #1867 from GammaC0de/patch-3 (diff)
parentAdd captcha pattern for Recaptcha and Solvemedia (diff)
downloadpyload-4365ce1e53f0ffced08e1efa1711f401c2dff29f.tar.xz
Merge pull request #1883 from joberreiter/joberreiter-patternxfshoster
[internal/XFSHoster.py] Add captcha pattern for Recaptcha and Solvemedia
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/XFSHoster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index 8af6b83ed..ffeab21a5 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -45,8 +45,8 @@ class XFSHoster(SimpleHoster):
CAPTCHA_PATTERN = r'(https?://[^"\']+?/captchas?/[^"\']+)'
CAPTCHA_BLOCK_PATTERN = r'>Enter code.*?<div.*?>(.+?)</div>'
- RECAPTCHA_PATTERN = None
- SOLVEMEDIA_PATTERN = None
+ RECAPTCHA_PATTERN = r'api\.recaptcha\.net/challenge\?k=(.+?)["\']'
+ SOLVEMEDIA_PATTERN = r'api\.solvemedia\.com/papi/challenge\.(?:no)?script\?k=(.+?)["\']'
FORM_PATTERN = None
FORM_INPUTS_MAP = None #: Dict passed as input_names to parse_html_form