diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-22 19:47:00 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-22 19:47:00 +0200 |
commit | 1b096b2eb2634e8dea80b06ab9ecde206b198b35 (patch) | |
tree | c37727ef1c0c43c553725c6a4ae92022f48bcc23 /module/plugins/internal/XFSPHoster.py | |
parent | [Keep2shareCC] Fix CAPTCHA_PATTERN (diff) | |
download | pyload-1b096b2eb2634e8dea80b06ab9ecde206b198b35.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/XFSPHoster.py')
-rw-r--r-- | module/plugins/internal/XFSPHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py index 5d75e41a7..91a69116c 100644 --- a/module/plugins/internal/XFSPHoster.py +++ b/module/plugins/internal/XFSPHoster.py @@ -46,7 +46,7 @@ class XFSPHoster(SimpleHoster): OVR_LINK_PATTERN = r'<h2>Download Link</h2>\s*<textarea[^>]*>([^<]+)' LINK_PATTERN = None #: final download url pattern - CAPTCHA_URL_PATTERN = r'(http://[^"\']+?/captchas?/[^"\']+)' + CAPTCHA_PATTERN = r'(http://[^"\']+?/captchas?/[^"\']+)' CAPTCHA_DIV_PATTERN = r'>Enter code.*?<div.*?>(.+?)</div>' RECAPTCHA_PATTERN = None SOLVEMEDIA_PATTERN = None @@ -306,7 +306,7 @@ class XFSPHoster(SimpleHoster): def handleCaptcha(self, inputs): - m = re.search(self.CAPTCHA_URL_PATTERN, self.html) + m = re.search(self.CAPTCHA_PATTERN, self.html) if m: captcha_url = m.group(1) inputs['code'] = self.decryptCaptcha(captcha_url) |