summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/NetfolderIn.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-19 23:56:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-19 23:56:13 +0200
commit14d3b88fc4bae2e25db8b418a790ef8dd1a76444 (patch)
treee02b043dec77d9195294312a28ce22ef5cb0fbb2 /module/plugins/crypter/NetfolderIn.py
parentfileserv, freakshare fix (diff)
downloadpyload-14d3b88fc4bae2e25db8b418a790ef8dd1a76444.tar.xz
netfolder, hotfile folder
Diffstat (limited to 'module/plugins/crypter/NetfolderIn.py')
-rw-r--r--module/plugins/crypter/NetfolderIn.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/module/plugins/crypter/NetfolderIn.py b/module/plugins/crypter/NetfolderIn.py
new file mode 100644
index 000000000..86777c61c
--- /dev/null
+++ b/module/plugins/crypter/NetfolderIn.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import re
+
+from module.plugins.Crypter import Crypter
+
+class NetfolderIn(Crypter):
+ __name__ = "NetfolderIn"
+ __type__ = "crypter"
+ __pattern__ = r"http://(?:www\.)?netfolder.in/(\w+/\w+|folder.php)"
+ __version__ = "0.1"
+ __description__ = """NetFolder Download Plugin"""
+ __author_name__ = ("RaNaN")
+ __author_mail__ = ("RaNaN@pyload.org")
+
+ def decrypt(self, pyfile):
+ html = self.load(pyfile.url)
+
+ name = re.findall(r'<span style="color: #ff9000;">([^<]+)', html)[0]
+ new_links = re.findall(r'href="(http://.{0,3}netload\.in/(datei|index.php?id=10&file_id=)[^"]+)', html)
+
+ new_links = [x[0] for x in new_links]
+
+ self.packages.append((name, new_links, name)) \ No newline at end of file