summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/NCryptIn.py
diff options
context:
space:
mode:
authorGravatar fragonib <devnull@localhost> 2011-04-18 23:31:13 +0200
committerGravatar fragonib <devnull@localhost> 2011-04-18 23:31:13 +0200
commit08c10b7b11585100319ea16c25d50033fa44cc7c (patch)
treec384cebd55a810fe0809295855361a27fa57cbf9 /module/plugins/crypter/NCryptIn.py
parentclosed #276 (diff)
downloadpyload-08c10b7b11585100319ea16c25d50033fa44cc7c.tar.xz
NCryptIn: FIX invalid password
Diffstat (limited to 'module/plugins/crypter/NCryptIn.py')
-rw-r--r--module/plugins/crypter/NCryptIn.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/crypter/NCryptIn.py b/module/plugins/crypter/NCryptIn.py
index 5791de55c..68456b7fe 100644
--- a/module/plugins/crypter/NCryptIn.py
+++ b/module/plugins/crypter/NCryptIn.py
@@ -10,7 +10,7 @@ class NCryptIn(Crypter):
__name__ = "NCryptIn"
__type__ = "crypter"
__pattern__ = r"http://(?:www\.)?ncrypt.in/folder-([^/\?]+)"
- __version__ = "1.0"
+ __version__ = "1.1"
__description__ = """NCrypt.in Crypter Plugin"""
__author_name__ = ("fragonib")
__author_mail__ = ("fragonib[AT]yahoo[DOT]es")
@@ -98,7 +98,9 @@ class NCryptIn(Crypter):
html = self.load(url, {}, post)
# Check for invalid password
- if "This password is invalid!" in html:
+ pattern = r'''div\ id="main".*?This\ password\ is\ invalid!'''
+ m = re.search(pattern, html, re.DOTALL)
+ if m is not None:
self.log.debug("NCryptIn: Incorrect password, please set right password on 'Edit package' form and retry")
self.fail("Incorrect password, please set right password on 'Edit package' form and retry")