summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/crypter/DevhostStFolder.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/module/plugins/crypter/DevhostStFolder.py b/module/plugins/crypter/DevhostStFolder.py
new file mode 100644
index 000000000..79aaf926f
--- /dev/null
+++ b/module/plugins/crypter/DevhostStFolder.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+#
+# Test links:
+# http://d-h.st/users/shine/?fld_id=37263#files
+
+import re
+
+from urlparse import urljoin
+
+from module.plugins.internal.SimpleCrypter import SimpleCrypter
+
+
+class DevhostStFolder(SimpleCrypter):
+ __name__ = "DevhostStFolder"
+ __type__ = "crypter"
+ __version__ = "0.01"
+
+ __pattern__ = r"http://(?:www\.)?d-h\.st/users/\w+/\?fld_id=\d+"
+
+ __description__ = """d-h.st decrypter plugin"""
+ __author_name_ = "zapp-brannigan"
+ __author_mail_ = "fuerst.reinje@web.de"
+
+
+ LINK_PATTERN = r'width: 530px;"><a href="(.+?)"'
+
+
+ def getLinks(self):
+ return [urljoin("http://d-h.st", link) for link in re.findall(self.LINK_PATTERN, self.html)]