diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
commit | 31c5e0c1cbb6da955973bdce360eedbe61225688 (patch) | |
tree | 0170556dd7528723c803fb1c299199aca143ab24 /module/network | |
parent | more fixes and chunk+resume debug (diff) | |
download | pyload-31c5e0c1cbb6da955973bdce360eedbe61225688.tar.xz |
fixed accounts
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/RequestFactory.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index 6bc7e3fe7..ec9ce4350 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -32,10 +32,13 @@ class RequestFactory(): self.updateBucket() self.cookiejars = {} + def iface(self): + return self.core.config["download"]["interface"] + def getRequest(self, pluginName, account=None): self.lock.acquire() - req = Browser(self.core.config["download"]["interface"], self.bucket, self.getProxies()) + req = Browser(self.iface(), self.bucket, self.getProxies()) if account: cj = self.getCookieJar(pluginName, account) @@ -47,7 +50,7 @@ class RequestFactory(): return req def getURL(self, url, get={}, post={}): - h = HTTPRequest(None, self.core.config["download"]["interface"], self.getProxies()) + h = HTTPRequest(None, self.iface(), self.getProxies()) rep = h.load(url, get, post) h.close() return rep |