summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-14 02:08:19 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-14 02:08:19 +0200
commit36e54a3ee89aafeffdc7eab789502decf11ca2ac (patch)
tree50379457400bb6f89eb75188aec4f22d3ebb7797 /module/plugins/crypter
parentMerge pull request #1820 from Bambie42/stable (diff)
downloadpyload-36e54a3ee89aafeffdc7eab789502decf11ca2ac.tar.xz
Update main Captcha plugin
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/LinkCryptWs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/LinkCryptWs.py b/module/plugins/crypter/LinkCryptWs.py
index fdb97ca2c..16ee1d4f1 100644
--- a/module/plugins/crypter/LinkCryptWs.py
+++ b/module/plugins/crypter/LinkCryptWs.py
@@ -14,7 +14,7 @@ from module.utils import html_unescape
class LinkCryptWs(Crypter):
__name__ = "LinkCryptWs"
__type__ = "crypter"
- __version__ = "0.11"
+ __version__ = "0.12"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?linkcrypt\.ws/(dir|container)/(?P<ID>\w+)'
@@ -131,11 +131,11 @@ class LinkCryptWs(Crypter):
def unlock_captcha_protection(self):
captcha_url = re.search(r'<form.*?id\s*?=\s*?"captcha"[^>]*?>.*?<\s*?input.*?src="(.+?)"', self.html, re.I | re.S).group(1)
- captcha = self.load(captcha_url, decode=False)
- captcha_code = self.captcha._decrypt(captcha, input_type="gif", output_type='positional')
+ captcha_code = self.captcha.decrypt(captcha_url, input_type="gif", output_type='positional')
self.html = self.load(self.pyfile.url, post={'x': captcha_code[0], 'y': captcha_code[1]})
+
def get_package_info(self):
name = self.pyfile.package().name
folder = self.pyfile.package().folder