summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/LixIn.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:03:21 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:43:18 +0200
commitff581d9a4a1637b4e06bcbe77d67591f9279fe1b (patch)
tree0be4883b505aecc6920bdfccfcc9672636d59691 /pyload/plugins/crypter/LixIn.py
parentImproved .gitattributes (diff)
downloadpyload-ff581d9a4a1637b4e06bcbe77d67591f9279fe1b.tar.xz
Fixed PEP 8 violations in Crypters
Diffstat (limited to 'pyload/plugins/crypter/LixIn.py')
-rw-r--r--pyload/plugins/crypter/LixIn.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/pyload/plugins/crypter/LixIn.py b/pyload/plugins/crypter/LixIn.py
index e2ee30731..b7a188e81 100644
--- a/pyload/plugins/crypter/LixIn.py
+++ b/pyload/plugins/crypter/LixIn.py
@@ -5,6 +5,7 @@ import re
from module.plugins.Crypter import Crypter
+
class LixIn(Crypter):
__name__ = "LixIn"
__type__ = "container"
@@ -13,25 +14,24 @@ class LixIn(Crypter):
__description__ = """Lix.in Container Plugin"""
__author_name__ = ("spoob")
__author_mail__ = ("spoob@pyload.org")
-
- CAPTCHA_PATTERN='<img src="(?P<image>captcha_img.php\?.*?)"'
- SUBMIT_PATTERN=r"value='continue.*?'"
- LINK_PATTERN=r'name="ifram" src="(?P<link>.*?)"'
-
+
+ CAPTCHA_PATTERN = '<img src="(?P<image>captcha_img.php\?.*?)"'
+ SUBMIT_PATTERN = r"value='continue.*?'"
+ LINK_PATTERN = r'name="ifram" src="(?P<link>.*?)"'
def decrypt(self, pyfile):
url = pyfile.url
-
- matches = re.search(self.__pattern__,url)
+
+ matches = re.search(self.__pattern__, url)
if not matches:
self.fail("couldn't identify file id")
-
+
id = matches.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)
+
+ matches = re.search(self.SUBMIT_PATTERN, self.html)
if not matches:
self.fail("link doesn't seem valid")
@@ -41,15 +41,15 @@ class LixIn(Crypter):
matches = re.search(self.CAPTCHA_PATTERN, self.html)
if matches:
self.logDebug("trying captcha")
- captcharesult = self.decryptCaptcha("http://lix.in/"+matches.group("image"))
- self.html = self.req.load(url, decode=True, post={"capt" : captcharesult, "submit":"submit","tiny":id})
+ captcharesult = self.decryptCaptcha("http://lix.in/" + matches.group("image"))
+ self.html = self.req.load(url, decode=True,
+ post={"capt": captcharesult, "submit": "submit", "tiny": id})
else:
self.logDebug("no captcha/captcha solved")
break
else:
- self.html = self.req.load(url, decode=True, post={"submit" : "submit",
- "tiny" : id})
-
+ self.html = self.req.load(url, decode=True, post={"submit": "submit", "tiny": id})
+
matches = re.search(self.LINK_PATTERN, self.html)
if not matches:
self.fail("can't find destination url")