From 6616c00ba1c40f5d56959bd0e4725f26250e1292 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 9 Feb 2015 17:42:31 +0100 Subject: Spare code cosmetics --- module/plugins/hoster/FilefactoryCom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/FilefactoryCom.py') 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' : '
'}) @@ -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)) -- cgit v1.2.3