summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NovafileCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-10-01 23:52:18 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-10-01 23:52:18 +0200
commita3ecb6eaa2b449c15ce6367e21b3744401e5ab18 (patch)
tree39a6af87f47f7aa8e0af4f58e1aff00bfce2359e /module/plugins/hoster/NovafileCom.py
parentfilebeer folder crypter, multihoster unload fix (diff)
downloadpyload-a3ecb6eaa2b449c15ce6367e21b3744401e5ab18.tar.xz
rapidgator.net premium, novafile.com free, multihoster schedule refresh
Diffstat (limited to 'module/plugins/hoster/NovafileCom.py')
-rw-r--r--module/plugins/hoster/NovafileCom.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/module/plugins/hoster/NovafileCom.py b/module/plugins/hoster/NovafileCom.py
new file mode 100644
index 000000000..dfd18761c
--- /dev/null
+++ b/module/plugins/hoster/NovafileCom.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
+class NovafileCom(XFileSharingPro):
+ __name__ = "NovafileCom"
+ __type__ = "hoster"
+ __pattern__ = r"http://(?:\w*\.)*novafile\.com/\w{12}"
+ __version__ = "0.01"
+ __description__ = """novafile.com hoster plugin"""
+ __author_name__ = ("zoidberg")
+ __author_mail__ = ("zoidberg@mujmail.cz")
+
+ FILE_SIZE_PATTERN = r'<div class="size">(?P<S>.+?)</div>'
+ #FILE_OFFLINE_PATTERN = '<b>&quot;File Not Found&quot;</b>|File has been removed due to Copyright Claim'
+ FORM_PATTERN = r'name="F\d+"'
+ ERROR_PATTERN = r'class="alert[^"]*alert-separate"[^>]*>\s*(?:<p>)?(.*?)\s*</'
+ DIRECT_LINK_PATTERN = r'<a href="(http://s\d+\.novafile\.com/.*?)" class="btn btn-green">Download File</a>'
+
+ HOSTER_NAME = "novafile.com"
+
+ def setup(self):
+ self.multiDL = False
+
+getInfo = create_getInfo(NovafileCom) \ No newline at end of file