summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar fragonib <devnull@localhost> 2012-12-26 20:40:18 +0100
committerGravatar fragonib <devnull@localhost> 2012-12-26 20:40:18 +0100
commit90c66cf8b63ca8b80b551d7b0aa96a671e7fcb96 (patch)
treee7053509b2064fef5f72311a4b328db55e9cba2d /module/plugins
parentRelinkUs: Crypter several improvements. (diff)
downloadpyload-90c66cf8b63ca8b80b551d7b0aa96a671e7fcb96.tar.xz
LinkSaveIn: FIX compiler warnings
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/crypter/LinkSaveIn.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/crypter/LinkSaveIn.py b/module/plugins/crypter/LinkSaveIn.py
index 2d568c592..30cc61055 100644
--- a/module/plugins/crypter/LinkSaveIn.py
+++ b/module/plugins/crypter/LinkSaveIn.py
@@ -97,10 +97,10 @@ class LinkSaveIn(Crypter):
self.html = self.load(self.pyfile.url, post=post)
def unlockCaptchaProtection(self):
- hash = re.search(r'name="hash" value="([^"]+)', self.html).group(1)
- captchaUrl = re.search(r'src=".(/captcha/cap.php\?hsh=[^"]+)', self.html).group(1)
- code = self.decryptCaptcha("http://linksave.in" + captchaUrl, forceUser=True)
- self.html = self.load(self.pyfile.url, post={"id": self.fileid, "hash": hash, "code": code})
+ captcha_hash = re.search(r'name="hash" value="([^"]+)', self.html).group(1)
+ captcha_url = re.search(r'src=".(/captcha/cap.php\?hsh=[^"]+)', self.html).group(1)
+ captcha_code = self.decryptCaptcha("http://linksave.in" + captcha_url, forceUser=True)
+ self.html = self.load(self.pyfile.url, post={"id": self.fileid, "hash": captcha_hash, "code": captcha_code})
def getPackageInfo(self):
name = self.pyfile.package().name
@@ -141,11 +141,11 @@ class LinkSaveIn(Crypter):
pattern = r'<a href="http://linksave\.in/(\w{43})"'
ids = re.findall(pattern, self.html)
self.logDebug("Decrypting %d Web links" % len(ids))
- for i, id in enumerate(ids):
+ for i, weblink_id in enumerate(ids):
try:
- webLink = "http://linksave.in/%s" % id
+ webLink = "http://linksave.in/%s" % weblink_id
self.logDebug("Decrypting Web link %d, %s" % (i+1, webLink))
- fwLink = "http://linksave.in/fw-%s" % id
+ fwLink = "http://linksave.in/fw-%s" % weblink_id
response = self.load(fwLink)
jscode = re.findall(r'<script type="text/javascript">(.*)</script>', response)[-1]
jseval = self.js.eval("document = { write: function(e) { return e; } }; %s" % jscode)