summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-10 16:00:34 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-10 16:00:34 +0200
commit343e246e94548cf2cc713aed92212e12d28ce658 (patch)
treee5ca0b9e44302ca164294c7652ed0269536b2000
parent[FiredriveComFolder] Mark dead (diff)
downloadpyload-343e246e94548cf2cc713aed92212e12d28ce658.tar.xz
[CaptchaService] Fix ReCaptcha KEY pattern
-rw-r--r--module/plugins/internal/CaptchaService.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py
index 187170660..9d8fd85f2 100644
--- a/module/plugins/internal/CaptchaService.py
+++ b/module/plugins/internal/CaptchaService.py
@@ -7,7 +7,7 @@ from random import random
class CaptchaService:
__name__ = "CaptchaService"
- __version__ = "0.09"
+ __version__ = "0.10"
__description__ = """Base captcha service plugin"""
__license__ = "GPLv3"
@@ -52,15 +52,15 @@ class CaptchaService:
class ReCaptcha(CaptchaService):
__name__ = "ReCaptcha"
- __version__ = "0.02"
+ __version__ = "0.03"
__description__ = """ReCaptcha captcha service plugin"""
__license__ = "GPLv3"
__authors__ = [("pyLoad Team", "admin@pyload.org")]
- KEY_PATTERN = r"https?://(?:www\.)?google\.com/recaptcha/api/challenge\?k=(?P<KEY>\w+?)"
- KEY_AJAX_PATTERN = r"Recaptcha\.create\s*\(\s*[\"'](?P<KEY>\w+)[\"']\s*,"
+ KEY_PATTERN = r"https?://(?:www\.)?google\.com/recaptcha/api/challenge\?k=(?P<KEY>\w+)"
+ KEY_AJAX_PATTERN = r"Recaptcha\.create\s*\(\s*[\"'](?P<KEY>\w+)"
def detect_key(self, html=None):