diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-04-24 19:46:59 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-04-24 19:46:59 +0200 |
commit | 1ef8f2435ec72fac64505fc11939e94665e11eef (patch) | |
tree | 76eb662a771923479e894b9c160a9b46326f33d1 /module/network/Browser.py | |
parent | bitshare fixes (diff) | |
download | pyload-1ef8f2435ec72fac64505fc11939e94665e11eef.tar.xz |
parse content disposition
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r-- | module/network/Browser.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py index adb2cb5d9..0bf5cf3cf 100644 --- a/module/network/Browser.py +++ b/module/network/Browser.py @@ -74,17 +74,19 @@ class Browser(object): self._size = self.dl.size self.dl.abort = True - def httpDownload(self, url, filename, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False, progressNotify=None): + def httpDownload(self, url, filename, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False, progressNotify=None, disposition=True): """ this can also download ftp """ self._size = 0 self.dl = HTTPDownload(url, filename, get, post, self.lastEffectiveURL if ref else None, self.cj if cookies else None, self.bucket, self.interface, - self.proxies, progressNotify) - self.dl.download(chunks, resume) + self.proxies, progressNotify, disposition) + name = self.dl.download(chunks, resume) self._size = self.dl.size self.dl = None + return name + def download(self, url, file_name, folder, get={}, post={}, ref=True, cookies=True, no_post_encode=False): self.log.warning("Browser: deprecated call 'download'") |