diff options
Diffstat (limited to 'module/plugins/hoster/FilefactoryCom.py')
-rw-r--r-- | module/plugins/hoster/FilefactoryCom.py | 6 |
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)) |