From 1e2e91091664c2fca6a187804b2041eab757dbe3 Mon Sep 17 00:00:00 2001 From: fedeG Date: Mon, 20 Apr 2015 22:01:18 +0200 Subject: PEP-8, Python Zen, refactor and reduce code (part 15 in master module/webui/app) Conflicts: pyload/webui/app/api.py pyload/webui/app/cnl.py pyload/webui/app/json.py pyload/webui/app/pyloadweb.py pyload/webui/app/utils.py --- pyload/webui/app/cnl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyload/webui/app/cnl.py') diff --git a/pyload/webui/app/cnl.py b/pyload/webui/app/cnl.py index b6cbd6b55..635d4030c 100644 --- a/pyload/webui/app/cnl.py +++ b/pyload/webui/app/cnl.py @@ -9,6 +9,7 @@ from base64 import standard_b64decode from binascii import unhexlify from bottle import route, request, HTTPError + from pyload.webui import PYLOAD, DL_ROOT, JS @@ -87,7 +88,7 @@ def addcrypted2(): try: jk = re.findall(r"return ('|\")(.+)('|\")", jk)[0][1] except Exception: - ## Test for some known js functions to decode + # Test for some known js functions to decode if jk.find("dec") > -1 and jk.find("org") > -1: org = re.findall(r"var org = ('|\")([^\"']+)", jk)[0][1] jk = list(org) -- cgit v1.2.3