From 31c5e0c1cbb6da955973bdce360eedbe61225688 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 29 Dec 2010 11:44:24 +0100 Subject: fixed accounts --- module/network/RequestFactory.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/network/RequestFactory.py') 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 -- cgit v1.2.3