summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DataHu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:17:13 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:23:47 +0100
commit86d3b6249073947132ed3a9eeb1b1e987d19569a (patch)
tree8ad8ef328f38866c00acb394e00fd11bdc9b6c04 /module/plugins/hoster/DataHu.py
parent[SimpleHoster] Fix some stuff, improve others (diff)
downloadpyload-86d3b6249073947132ed3a9eeb1b1e987d19569a.tar.xz
Update some plugins
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)