summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/LixIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:25:14 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:25:14 +0200
commit05d258d98dd8c2faf0b769840fa1e3c4acccdce8 (patch)
tree20d379639d14a2b69deaa9e0376e33312b5bb994 /module/plugins/crypter/LixIn.py
parent[ShareRapidCom] Fix https://github.com/pyload/pyload/issues/694 (diff)
downloadpyload-05d258d98dd8c2faf0b769840fa1e3c4acccdce8.tar.xz
Diffstat (limited to 'module/plugins/crypter/LixIn.py')
-rw-r--r--module/plugins/crypter/LixIn.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/module/plugins/crypter/LixIn.py b/module/plugins/crypter/LixIn.py
index e609c9da4..a39173903 100644
--- a/module/plugins/crypter/LixIn.py
+++ b/module/plugins/crypter/LixIn.py
@@ -24,26 +24,26 @@ class LixIn(Crypter):
def decrypt(self, pyfile):
url = pyfile.url
- matches = re.match(self.__pattern__, url)
- if not matches:
+ m = re.match(self.__pattern__, url)
+ if m is None:
self.fail("couldn't identify file id")
- id = matches.group("id")
+ id = m.group("id")
self.logDebug("File id is %s" % id)
self.html = self.req.load(url, decode=True)
- matches = re.search(self.SUBMIT_PATTERN, self.html)
- if not matches:
+ m = re.search(self.SUBMIT_PATTERN, self.html)
+ if m is None:
self.fail("link doesn't seem valid")
- matches = re.search(self.CAPTCHA_PATTERN, self.html)
- if matches:
+ m = re.search(self.CAPTCHA_PATTERN, self.html)
+ if m:
for _ in xrange(5):
- matches = re.search(self.CAPTCHA_PATTERN, self.html)
- if matches:
+ m = re.search(self.CAPTCHA_PATTERN, self.html)
+ if m:
self.logDebug("trying captcha")
- captcharesult = self.decryptCaptcha("http://lix.in/" + matches.group("image"))
+ captcharesult = self.decryptCaptcha("http://lix.in/" + m.group("image"))
self.html = self.req.load(url, decode=True,
post={"capt": captcharesult, "submit": "submit", "tiny": id})
else:
@@ -51,9 +51,9 @@ class LixIn(Crypter):
else:
self.html = self.req.load(url, decode=True, post={"submit": "submit", "tiny": id})
- matches = re.search(self.LINK_PATTERN, self.html)
- if not matches:
+ m = re.search(self.LINK_PATTERN, self.html)
+ if m is None:
self.fail("can't find destination url")
else:
- self.urls = [matches.group("link")]
+ self.urls = [m.group("link")]
self.logDebug("Found link %s, adding to package" % self.urls[0])