summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/TrailerzoneInfo.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:03:21 +0200
commit4b61d36bf18931df0a9720047b3619ce245f8a1b (patch)
treefa6214ca6c85eb547dfe7de1ec7502ff3ce71793 /module/plugins/crypter/TrailerzoneInfo.py
parentNormalize line endings to avoid line endings merge conflicts (diff)
downloadpyload-4b61d36bf18931df0a9720047b3619ce245f8a1b.tar.xz
Fixed PEP 8 violations in Crypters
Diffstat (limited to 'module/plugins/crypter/TrailerzoneInfo.py')
-rw-r--r--module/plugins/crypter/TrailerzoneInfo.py13
1 files changed, 7 insertions, 6 deletions
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')