From 4b04c8d5761e77fc77207dcac7dc9a34b325877d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 10 Jan 2015 19:51:36 +0100 Subject: [MultiHoster] Use content-disposition --- module/plugins/internal/MultiHoster.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index 5011b88a3..eca7e9ecd 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, r class MultiHoster(SimpleHoster): __name__ = "MultiHoster" __type__ = "hoster" - __version__ = "0.31" + __version__ = "0.32" __pattern__ = r'^unmatchable$' @@ -52,14 +52,9 @@ class MultiHoster(SimpleHoster): def process(self, pyfile): self.prepare() - self.wait(5) - if self.__pattern__ != r'^unmatchable$' and re.match(self.__pattern__, pyfile.url): self.checkInfo() - elif not pyfile.name or pyfile.name == pyfile.url: - self.checkNameSize() - if self.directDL: self.logDebug("Looking for direct download link...") self.handleDirect(pyfile) @@ -81,6 +76,13 @@ class MultiHoster(SimpleHoster): self.downloadLink(self.link) self.checkFile() + + #@TODO: Remove in 0.4.10 + def downloadLink(self, link): + if link and isinstance(link, basestring): + self.correctCaptcha() + self.download(link, disposition=True) + def handlePremium(self, pyfile): return self.handleFree(pyfile) -- cgit v1.2.3