summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/DataHu.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/DataHu.py')
-rw-r--r--pyload/plugin/hoster/DataHu.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/pyload/plugin/hoster/DataHu.py b/pyload/plugin/hoster/DataHu.py
new file mode 100644
index 000000000..1f44e62e5
--- /dev/null
+++ b/pyload/plugin/hoster/DataHu.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+#
+# Test links:
+# http://data.hu/get/6381232/random.bin
+
+import re
+
+from pyload.plugin.internal.SimpleHoster import SimpleHoster
+
+
+class DataHu(SimpleHoster):
+ __name = "DataHu"
+ __type = "hoster"
+ __version = "0.03"
+
+ __pattern = r'http://(?:www\.)?data\.hu/get/\w+'
+ __config = [("use_premium", "bool", "Use premium account if available", True)]
+
+ __description = """Data.hu hoster plugin"""
+ __license = "GPLv3"
+ __authors = [("crash", ""),
+ ("stickell", "l.stickell@yahoo.it")]
+
+
+ INFO_PATTERN = ur'<title>(?P<N>.*) \((?P<S>[^)]+)\) let\xf6lt\xe9se</title>'
+ OFFLINE_PATTERN = ur'Az adott f\xe1jl nem l\xe9tezik'
+ LINK_FREE_PATTERN = r'<div class="download_box_button"><a href="(.+?)">'
+
+
+ def setup(self):
+ self.resumeDownload = True
+ self.multiDL = self.premium