summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-08-16 21:42:08 +0200
committerGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-08-16 21:42:08 +0200
commit67864826ef26c831c9fa216b154917d48b045f72 (patch)
tree349312e072b83d0019ba23eac0617a1dbc50b097 /module/plugins/crypter
parentUpdate FilecryptCc.py (diff)
downloadpyload-67864826ef26c831c9fa216b154917d48b045f72.tar.xz
Update ShareLinksBiz.py
Correct regex search for getting captcha url data
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/ShareLinksBiz.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/crypter/ShareLinksBiz.py b/module/plugins/crypter/ShareLinksBiz.py
index df6068908..712b4fff2 100644
--- a/module/plugins/crypter/ShareLinksBiz.py
+++ b/module/plugins/crypter/ShareLinksBiz.py
@@ -118,7 +118,10 @@ class ShareLinksBiz(Crypter):
self.log_debug("Captcha map with [%d] positions" % len(captchaMap.keys()))
#: Request user for captcha coords
- m = re.search(r'<img src="/captcha.gif\?d=(.*?)&amp;PHPSESSID=(.*?)&amp;legend=1"', self.html)
+ m = re.search(r'<img src="/captcha.gif\?d=(.+?)&PHPSESSID=(.+?)&legend=1"', self.html)
+ if not m:
+ self.log_debug("Captcha url data not found, maybe plugin out of date?")
+ self.fail("Captcha url data not found")
captchaUrl = self.base_url + '/captcha.gif?d=%s&PHPSESSID=%s' % (m.group(1), m.group(2))
self.log_debug("Waiting user for correct position")
coords = self.captcha.decrypt(captchaUrl, input_type="gif", output_type='positional')