diff options
| author | 2013-07-21 15:03:21 +0200 | |
|---|---|---|
| committer | 2013-07-21 15:43:18 +0200 | |
| commit | ff581d9a4a1637b4e06bcbe77d67591f9279fe1b (patch) | |
| tree | 0be4883b505aecc6920bdfccfcc9672636d59691 /pyload/plugins/crypter/TrailerzoneInfo.py | |
| parent | Improved .gitattributes (diff) | |
| download | pyload-ff581d9a4a1637b4e06bcbe77d67591f9279fe1b.tar.xz | |
Fixed PEP 8 violations in Crypters
(cherry-picked from 4b61d36bf18931df0a9720047b3619ce245f8a1b)
Diffstat (limited to 'pyload/plugins/crypter/TrailerzoneInfo.py')
| -rw-r--r-- | pyload/plugins/crypter/TrailerzoneInfo.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pyload/plugins/crypter/TrailerzoneInfo.py b/pyload/plugins/crypter/TrailerzoneInfo.py index 43a4fcce5..b55c8d219 100644 --- a/pyload/plugins/crypter/TrailerzoneInfo.py +++ b/pyload/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') |
