summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FilezyNet.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-12 13:11:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-12 13:11:11 +0200
commitfc638ded28b7b222203fba9907b6bf7f828d1b7b (patch)
tree7bc4f95042c9f4a036901837e74248b257506675 /pyload/plugins/hoster/FilezyNet.py
parentadded legacy file to fix older plugins (diff)
parentMerge pull request #193 from vuolter/plugin/UnrestrictLi (diff)
downloadpyload-fc638ded28b7b222203fba9907b6bf7f828d1b7b.tar.xz
Merge remote-tracking branch 'origin/stable'
Conflicts: module/plugins/accounts/Premium4Me.py pyload/plugins/addons/Premium4Me.py pyload/plugins/crypter/NCryptIn.py pyload/plugins/hooks/Captcha9kw.py pyload/plugins/hoster/Premium4Me.py pyload/plugins/hoster/Xdcc.py pyload/plugins/hoster/XvidstageCom.py
Diffstat (limited to 'pyload/plugins/hoster/FilezyNet.py')
-rw-r--r--pyload/plugins/hoster/FilezyNet.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/pyload/plugins/hoster/FilezyNet.py b/pyload/plugins/hoster/FilezyNet.py
new file mode 100644
index 000000000..7c5729c2d
--- /dev/null
+++ b/pyload/plugins/hoster/FilezyNet.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+import re
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
+class FilezyNet(XFileSharingPro):
+ __name__ = "FilezyNet"
+ __type__ = "hoster"
+ __version__ = "0.1"
+ __pattern__ = r"http://filezy.net/.*/.*.html"
+ __description__ = """filezy.net hoster plugin"""
+
+ HOSTER_NAME = "filezy.net"
+
+ FILE_SIZE_PATTERN = r'<span class="plansize">(?P<S>[0-9.]+) (?P<U>[kKMG])i?B</span>'
+ WAIT_PATTERN = r'<div id="countdown_str" class="seconds">\n<!--Wait--> <span id=".*?">(\d+)</span>'
+ DOWNLOAD_JS_PATTERN = r"<script type='text/javascript'>eval(.*)"
+
+ def setup(self):
+ self.resumeDownload = True
+ self.multiDL = self.premium
+
+ def getDownloadLink(self):
+ self.logDebug("Getting download link")
+
+ data = self.getPostParameters()
+ self.html = self.load(self.pyfile.url, post = data, ref = True, decode = True)
+
+ obfuscated_js = re.search(self.DOWNLOAD_JS_PATTERN, self.html)
+ dl_file_now = self.js.eval(obfuscated_js.group(1))
+ link = re.search(self.DIRECT_LINK_PATTERN, dl_file_now)
+ return link.group(1)
+
+getInfo = create_getInfo(FilezyNet)