summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DataHu.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/DataHu.py')
-rw-r--r--module/plugins/hoster/DataHu.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/module/plugins/hoster/DataHu.py b/module/plugins/hoster/DataHu.py
index 437fea7cd..f4b0692a8 100644
--- a/module/plugins/hoster/DataHu.py
+++ b/module/plugins/hoster/DataHu.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DataHu(SimpleHoster):
__name__ = "DataHu"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?data\.hu/get/\w+'
@@ -23,7 +23,7 @@ class DataHu(SimpleHoster):
INFO_PATTERN = ur'<title>(?P<N>.*) \((?P<S>[^)]+)\) let\xf6lt\xe9se</title>'
OFFLINE_PATTERN = ur'Az adott f\xe1jl nem l\xe9tezik'
- LINK_PATTERN = r'<div class="download_box_button"><a href="([^"]+)">'
+ LINK_FREE_PATTERN = r'<div class="download_box_button"><a href="([^"]+)">'
def setup(self):
@@ -31,12 +31,4 @@ class DataHu(SimpleHoster):
self.multiDL = self.premium
- def handleFree(self):
- m = re.search(self.LINK_PATTERN, self.html)
- if m is None:
- self.error(_("LINK_PATTERN not found"))
-
- self.download(m.group(1), disposition=True)
-
-
getInfo = create_getInfo(DataHu)