diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-09-10 17:18:31 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-09-10 17:18:31 +0200 |
commit | 741096db58bb86a1e73e101d540959390b213436 (patch) | |
tree | cfd40abb16209c35bd4457f8c190eb2a81e842ba /module/network/Request.py | |
parent | cat replacement (diff) | |
download | pyload-741096db58bb86a1e73e101d540959390b213436.tar.xz |
save specific download folder
Diffstat (limited to 'module/network/Request.py')
-rwxr-xr-x | module/network/Request.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/network/Request.py b/module/network/Request.py index 084c84f95..742111a2a 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -5,6 +5,7 @@ """ authored by: RaNaN, Spoob """ +import os import base64 import cookielib from gzip import GzipFile @@ -204,7 +205,7 @@ class Request: self.opener.add_handler(handler) self.downloader.add_handler(handler) - def download(self, url, file_name, get={}, post={}, ref=True, cookies=False): + def download(self, url, file_name, folder="", get={}, post={}, ref=True, cookies=False): if post: post = urllib.urlencode(post) |