diff options
author | Jeix <devnull@localhost> | 2012-09-17 21:58:37 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2012-09-17 21:58:37 +0200 |
commit | 22a3f78767aaef44fc4e61a0479b42be3279eac5 (patch) | |
tree | edb4fbda26b0f40993c06b8a9aedca72bda2b4f7 /module | |
parent | Added NowDownloadEu Hoster (No limits) (diff) | |
download | pyload-22a3f78767aaef44fc4e61a0479b42be3279eac5.tar.xz |
closed #629
Diffstat (limited to 'module')
-rw-r--r-- | module/network/RequestFactory.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index 5b1528281..aa8977c4d 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -40,16 +40,17 @@ class RequestFactory(): def getRequest(self, pluginName, account=None, type="HTTP"): self.lock.acquire() + req = None if type == "XDCC": - return XDCCRequest(proxies=self.getProxies()) - - req = Browser(self.bucket, self.getOptions()) - - if account: - cj = self.getCookieJar(pluginName, account) - req.setCookieJar(cj) + req = XDCCRequest(proxies=self.getProxies()) else: - req.setCookieJar(CookieJar(pluginName)) + req = Browser(self.bucket, self.getOptions()) + + if account: + cj = self.getCookieJar(pluginName, account) + req.setCookieJar(cj) + else: + req.setCookieJar(CookieJar(pluginName)) self.lock.release() return req |