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.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/hoster/DataHu.py b/module/plugins/hoster/DataHu.py
index fd6a01135..74d631e7b 100644
--- a/module/plugins/hoster/DataHu.py
+++ b/module/plugins/hoster/DataHu.py
@@ -33,13 +33,10 @@ class DataHu(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
- if m:
- url = m.group(1)
- self.logDebug("Direct link: " + url)
- else:
+ if m is None:
self.error(_("LINK_PATTERN not found"))
- self.download(url, disposition=True)
+ self.download(m.group(1), disposition=True)
getInfo = create_getInfo(DataHu)