From 4b61d36bf18931df0a9720047b3619ce245f8a1b Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 21 Jul 2013 15:03:21 +0200 Subject: Fixed PEP 8 violations in Crypters --- module/plugins/crypter/TrailerzoneInfo.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'module/plugins/crypter/TrailerzoneInfo.py') diff --git a/module/plugins/crypter/TrailerzoneInfo.py b/module/plugins/crypter/TrailerzoneInfo.py index 43a4fcce5..b55c8d219 100644 --- a/module/plugins/crypter/TrailerzoneInfo.py +++ b/module/plugins/crypter/TrailerzoneInfo.py @@ -3,6 +3,7 @@ import re from module.plugins.Crypter import Crypter + class TrailerzoneInfo(Crypter): __name__ = "TrailerzoneInfo" __type__ = "crypter" @@ -24,22 +25,22 @@ class TrailerzoneInfo(Crypter): self.handleGo(url) def handleProtect(self, url): - self.handleGo("http://trailerzone.info/go.html#:::" + url.split("#:::",1)[1]) + self.handleGo("http://trailerzone.info/go.html#:::" + url.split("#:::", 1)[1]) def handleGo(self, url): - + src = self.req.load(str(url)) pattern = re.compile(self.JS_KEY_PATTERN, re.DOTALL) found = re.search(pattern, src) - + # Get package info - package_links = [] + package_links = [] try: - result = self.js.eval(found.group(1) + " decodeLink('" + url.split("#:::",1)[1] + "');") + result = self.js.eval(found.group(1) + " decodeLink('" + url.split("#:::", 1)[1] + "');") result = str(result) self.logDebug("RESULT: %s" % result) package_links.append(result) self.core.files.addLinks(package_links, self.pyfile.package().id) except Exception, e: - self.logDebug(e) + self.logDebug(e) self.fail('Could not extract any links by javascript') -- cgit v1.2.3