summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-09-26 18:31:31 +0200
committerGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-09-26 18:31:31 +0200
commit260d307c7c6c3149607a8f6dba143dea9a6b609c (patch)
treece03b707a973d83048f4985fb4d2d37bbb4dac84 /module/plugins
parentMerge pull request #1 from pyload/stable (diff)
downloadpyload-260d307c7c6c3149607a8f6dba143dea9a6b609c.tar.xz
Add captcha pattern for Recaptcha and Solvemedia
Fix for #1852, #1865
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/XFSHoster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index 729c9a0ee..105e8f4ba 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -14,7 +14,7 @@ from module.utils import html_unescape
class XFSHoster(SimpleHoster):
__name__ = "XFSHoster"
__type__ = "hoster"
- __version__ = "0.60"
+ __version__ = "0.61"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -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