summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilefactoryCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-09 17:42:31 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-09 17:42:31 +0100
commit6616c00ba1c40f5d56959bd0e4725f26250e1292 (patch)
tree17ca0a420cf6c104c9a78a0d31d7a81fc7270f5c /module/plugins/hoster/FilefactoryCom.py
parent[CaptchaService] Cleanup (diff)
downloadpyload-6616c00ba1c40f5d56959bd0e4725f26250e1292.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilefactoryCom.py')
-rw-r--r--module/plugins/hoster/FilefactoryCom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py
index 30c1b85ec..4980ebe39 100644
--- a/module/plugins/hoster/FilefactoryCom.py
+++ b/module/plugins/hoster/FilefactoryCom.py
@@ -52,14 +52,14 @@ class FilefactoryCom(SimpleHoster):
if m is None:
self.error(_("Free download link not found"))
- dl_link = m.group(1)
+ self.link = m.group(1)
m = re.search(self.WAIT_PATTERN, self.html)
if m:
self.wait(m.group(1))
- self.download(dl_link, disposition=True)
+ def checkFile(self):
check = self.checkDownload({'multiple': "You are currently downloading too many files at once.",
'error' : '<div id="errorMessage">'})
@@ -70,6 +70,8 @@ class FilefactoryCom(SimpleHoster):
elif check == "error":
self.error(_("Unknown error"))
+ return super(FilefactoryCom, self).checkFile()
+
def handlePremium(self, pyfile):
self.link = self.directLink(self.load(pyfile.url, just_header=True))