summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/NCryptIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
commitc9b42f02f83a95d7741eee96247466d3b610b159 (patch)
treeba642be8eeb25233e83763aab2aa6227b31c7885 /module/plugins/crypter/NCryptIn.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/crypter/NCryptIn.py')
-rw-r--r--module/plugins/crypter/NCryptIn.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/crypter/NCryptIn.py b/module/plugins/crypter/NCryptIn.py
index fb0138cd5..dfdd697f8 100644
--- a/module/plugins/crypter/NCryptIn.py
+++ b/module/plugins/crypter/NCryptIn.py
@@ -54,15 +54,15 @@ class NCryptIn(Crypter):
else:
#: Request folder home
- self.html = self.request_folder_home()
- self.cleaned_html = self.remove_html_crap(self.html)
+ self.data = self.request_folder_home()
+ self.cleaned_html = self.remove_html_crap(self.data)
if not self.is_online():
self.offline()
#: Check for folder protection
if self.is_protected():
- self.html = self.unlock_protection()
- self.cleaned_html = self.remove_html_crap(self.html)
+ self.data = self.unlock_protection()
+ self.cleaned_html = self.remove_html_crap(self.data)
self.handle_errors()
#: Prepare package name and folder
@@ -121,7 +121,7 @@ class NCryptIn(Crypter):
def get_package_info(self):
- m = re.search(self.NAME_PATTERN, self.html)
+ m = re.search(self.NAME_PATTERN, self.data)
if m is not None:
name = folder = m.group('N').strip()
self.log_debug("Found name [%s] and folder [%s] in package info" % (name, folder))
@@ -240,7 +240,7 @@ class NCryptIn(Crypter):
package_links = []
pattern = r'/container/(rsdf|dlc|ccf)/(\w+)'
- containersLinks = re.findall(pattern, self.html)
+ containersLinks = re.findall(pattern, self.data)
self.log_debug("Decrypting %d Container links" % len(containersLinks))
for containerLink in containersLinks:
link = "http://ncrypt.in/container/%s/%s.%s" % (containerLink[0], containerLink[1], containerLink[0])
@@ -252,7 +252,7 @@ class NCryptIn(Crypter):
def handle_web_links(self):
self.log_debug("Handling Web links")
pattern = r'(http://ncrypt\.in/link-.*?=)'
- links = re.findall(pattern, self.html)
+ links = re.findall(pattern, self.data)
package_links = []
self.log_debug("Decrypting %d Web links" % len(links))
@@ -280,11 +280,11 @@ class NCryptIn(Crypter):
#: Get jk
jk_re = pattern % NCryptIn.JK_KEY
- vjk = re.findall(jk_re, self.html)
+ vjk = re.findall(jk_re, self.data)
#: Get crypted
crypted_re = pattern % NCryptIn.CRYPTED_KEY
- vcrypted = re.findall(crypted_re, self.html)
+ vcrypted = re.findall(crypted_re, self.data)
#: Log and return
self.log_debug("Detected %d crypted blocks" % len(vcrypted))