summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/captcha/AdYouLike.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/captcha/AdYouLike.py')
-rw-r--r--pyload/plugin/captcha/AdYouLike.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyload/plugin/captcha/AdYouLike.py b/pyload/plugin/captcha/AdYouLike.py
index 83fc4e1a3..a29524bcc 100644
--- a/pyload/plugin/captcha/AdYouLike.py
+++ b/pyload/plugin/captcha/AdYouLike.py
@@ -18,6 +18,7 @@ class AdYouLike(Captcha):
AYL_PATTERN = r'Adyoulike\.create\s*\((.+?)\)'
CALLBACK_PATTERN = r'(Adyoulike\.g\._jsonp_\d+)'
+
def detect_key(self, html=None):
if not html:
if hasattr(self.plugin, "html") and self.plugin.html:
@@ -37,6 +38,7 @@ class AdYouLike(Captcha):
self.logDebug("Ayl or callback not found")
return None
+
def challenge(self, key=None, html=None):
if not key:
if self.detect_key(html):
@@ -68,6 +70,7 @@ class AdYouLike(Captcha):
return self.result(ayl, challenge), challenge
+
def result(self, server, challenge):
# Adyoulike.g._jsonp_5579316662423138
# ({"translations":{"fr":{"instructions_visual":"Recopiez « Soonnight » ci-dessous :"}},