summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/NetfolderIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
commit5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 (patch)
treeb3f80dbd9e759747f9c2acb60f614c5daa7af69e /module/plugins/crypter/NetfolderIn.py
parentFix class definition (diff)
downloadpyload-5060e4c6374a5116d0d8b02528f910f8c5f8bcf9.tar.xz
Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics
Diffstat (limited to 'module/plugins/crypter/NetfolderIn.py')
-rw-r--r--module/plugins/crypter/NetfolderIn.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/crypter/NetfolderIn.py b/module/plugins/crypter/NetfolderIn.py
index 28ee3a9dd..286b9366b 100644
--- a/module/plugins/crypter/NetfolderIn.py
+++ b/module/plugins/crypter/NetfolderIn.py
@@ -23,7 +23,7 @@ class NetfolderIn(SimpleCrypter):
# Check for password protection
if self.isPasswordProtected():
self.html = self.submitPassword()
- if self.html is None:
+ if not self.html:
self.fail("Incorrect password, please set right password on Add package form and retry")
# Get package name and folder
@@ -36,7 +36,6 @@ class NetfolderIn(SimpleCrypter):
self.packages = [(package_name, package_links, folder_name)]
def isPasswordProtected(self):
-
if '<input type="password" name="password"' in self.html:
self.logDebug("Links are password protected")
return True