summaryrefslogtreecommitdiffstats
path: root/module/network/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2011-02-11 20:17:20 +0100
committerGravatar Jeix <devnull@localhost> 2011-02-11 20:17:20 +0100
commit4a6cfe415a0d362bf30f22fac16b732195f97232 (patch)
treef90318302830b967b4734fc1e7d82eda6d52a8fc /module/network/RequestFactory.py
parentsocket code fixes (diff)
downloadpyload-4a6cfe415a0d362bf30f22fac16b732195f97232.tar.xz
GUI updates, closed #181, updated XDCC, fixed FileSonic
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r--module/network/RequestFactory.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py
index 8340d06f7..90a48fe3c 100644
--- a/module/network/RequestFactory.py
+++ b/module/network/RequestFactory.py
@@ -24,6 +24,8 @@ from Bucket import Bucket
from HTTPRequest import HTTPRequest
from CookieJar import CookieJar
+from XDCCRequest import XDCCRequest
+
class RequestFactory():
def __init__(self, core):
self.lock = Lock()
@@ -35,9 +37,12 @@ class RequestFactory():
def iface(self):
return self.core.config["download"]["interface"]
- def getRequest(self, pluginName, account=None):
+ def getRequest(self, pluginName, account=None, type="HTTP"):
self.lock.acquire()
+ if type == "XDCC":
+ return XDCCRequest(proxies=self.getProxies())
+
req = Browser(self.iface(), self.bucket, self.getProxies())
if account: