summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/DataHuFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 17:15:29 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 17:15:29 +0100
commit282362c01b67f83ff5cf677ba125a41a6d594f2c (patch)
tree7782f1a146f41fa26fdd2c4bdb1679977cf5cf35 /pyload/plugins/crypter/DataHuFolder.py
parentCode cosmetics (diff)
downloadpyload-282362c01b67f83ff5cf677ba125a41a6d594f2c.tar.xz
Update plugins 2
Diffstat (limited to 'pyload/plugins/crypter/DataHuFolder.py')
-rw-r--r--pyload/plugins/crypter/DataHuFolder.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/pyload/plugins/crypter/DataHuFolder.py b/pyload/plugins/crypter/DataHuFolder.py
deleted file mode 100644
index b65c39904..000000000
--- a/pyload/plugins/crypter/DataHuFolder.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from pyload.plugins.internal.SimpleCrypter import SimpleCrypter
-
-
-class DataHuFolder(SimpleCrypter):
- __name__ = "DataHuFolder"
- __type__ = "crypter"
- __version__ = "0.06"
-
- __pattern__ = r'http://(?:www\.)?data\.hu/dir/\w+'
- __config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
- ("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
-
- __description__ = """Data.hu folder decrypter plugin"""
- __license__ = "GPLv3"
- __authors__ = [("crash", None),
- ("stickell", "l.stickell@yahoo.it")]
-
-
- LINK_PATTERN = r'<a href=\'(http://data\.hu/get/.+)\' target=\'_blank\'>\1</a>'
- NAME_PATTERN = ur'<title>(?P<N>.+) Let\xf6lt\xe9se</title>'
-
-
- def prepare(self):
- super(DataHuFolder, self).prepare()
-
- if u'K\xe9rlek add meg a jelsz\xf3t' in self.html: # Password protected
- password = self.getPassword()
- if not password:
- self.fail(_("Password required"))
-
- self.logDebug("The folder is password protected', 'Using password: " + password)
-
- self.html = self.load(self.pyfile.url, post={'mappa_pass': password}, decode=True)
-
- if u'Hib\xe1s jelsz\xf3' in self.html: # Wrong password
- self.fail(_("Wrong password"))