summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/accounts/DevhostStFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-03 17:46:50 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-03 17:46:50 +0200
commitf62715c5d2c6eb6379119b220a271b5b73da689f (patch)
tree635fa83650c80f30a72205c9f8ab23289ab3977a /pyload/plugins/accounts/DevhostStFolder.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-f62715c5d2c6eb6379119b220a271b5b73da689f.tar.xz
Fix previous merge commit
Diffstat (limited to 'pyload/plugins/accounts/DevhostStFolder.py')
-rw-r--r--pyload/plugins/accounts/DevhostStFolder.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/pyload/plugins/accounts/DevhostStFolder.py b/pyload/plugins/accounts/DevhostStFolder.py
new file mode 100644
index 000000000..1c9bd3889
--- /dev/null
+++ b/pyload/plugins/accounts/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 pyload.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';"><a href="/(\w+)'
+
+
+ def getLinks(self):
+ return [urljoin("http://d-h.st", link) for link in re.findall(self.LINK_PATTERN, self.html)]