summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UlozTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/UlozTo.py')
-rw-r--r--module/plugins/hoster/UlozTo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 035562962..3fd88bfb0 100644
--- a/module/plugins/hoster/UlozTo.py
+++ b/module/plugins/hoster/UlozTo.py
@@ -82,7 +82,7 @@ class UlozTo(SimpleHoster):
else:
self.handleFree(pyfile)
- self.doCheckDownload()
+ self.checkFile()
def handleFree(self, pyfile):
@@ -124,7 +124,7 @@ class UlozTo(SimpleHoster):
self.download(pyfile.url, get={'do': "directDownload"}, disposition=True)
- def doCheckDownload(self):
+ def checkFile(self, rules={}):
check = self.checkDownload({
"wrong_captcha": re.compile(r'<ul class="error">\s*<li>Error rewriting the text.</li>'),
"offline" : re.compile(self.OFFLINE_PATTERN),
@@ -154,5 +154,7 @@ class UlozTo(SimpleHoster):
elif check == "not_found":
self.fail(_("Server error - file not downloadable"))
+ return super(UlozTo, self).checkFile(rules)
+
getInfo = create_getInfo(UlozTo)