diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:51:36 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:51:36 +0100 |
commit | 4b04c8d5761e77fc77207dcac7dc9a34b325877d (patch) | |
tree | f5a97086470520b6ede6cbd4582104244a2e089d /module | |
parent | [MultiHook] Fix downloadFailed routine (diff) | |
download | pyload-4b04c8d5761e77fc77207dcac7dc9a34b325877d.tar.xz |
[MultiHoster] Use content-disposition
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 14 |
1 files 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) |