diff options
author | Stefano <l.stickell@yahoo.it> | 2013-04-03 14:38:48 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-04-03 14:38:48 +0200 |
commit | e1993f0517457942ca30d9c9f2991070bb1e6543 (patch) | |
tree | 9e13a345a5f35662fd254c8fba8b162e27c5116a /module/plugins/crypter/DataHuFolder.py | |
parent | SimpleHoster: fixed wrong pattern names in documentation (diff) | |
download | pyload-e1993f0517457942ca30d9c9f2991070bb1e6543.tar.xz |
DataHuFolder: error message if folder is password protected but no password is specified
Diffstat (limited to 'module/plugins/crypter/DataHuFolder.py')
-rw-r--r-- | module/plugins/crypter/DataHuFolder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/crypter/DataHuFolder.py b/module/plugins/crypter/DataHuFolder.py index a93e33cea..f710f60d7 100644 --- a/module/plugins/crypter/DataHuFolder.py +++ b/module/plugins/crypter/DataHuFolder.py @@ -24,7 +24,7 @@ class DataHuFolder(SimpleCrypter): __name__ = "DataHuFolder" __type__ = "crypter" __pattern__ = r"http://(www\.)?data.hu/dir/\w+" - __version__ = "0.02" + __version__ = "0.03" __description__ = """Data.hu Folder Plugin""" __author_name__ = ("crash", "stickell") __author_mail__ = ("l.stickell@yahoo.it") @@ -37,6 +37,8 @@ class DataHuFolder(SimpleCrypter): if u'K\xe9rlek add meg a jelsz\xf3t' in self.html: # Password protected password = self.getPassword() + if password is '': + self.fail("No password specified, please set right password on Add package form and retry") self.logDebug('The folder is password protected', 'Using password: ' + password) self.html = self.load(pyfile.url, post={'mappa_pass': password}, decode=True) if u'Hib\xe1s jelsz\xf3' in self.html: # Wrong password |