From 08c10b7b11585100319ea16c25d50033fa44cc7c Mon Sep 17 00:00:00 2001 From: fragonib Date: Mon, 18 Apr 2011 23:31:13 +0200 Subject: NCryptIn: FIX invalid password --- module/plugins/crypter/NCryptIn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins') 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") -- cgit v1.2.3