summaryrefslogtreecommitdiffstats
path: root/module/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-06-20 11:59:21 +0200
committerGravatar Jeix <devnull@localhost> 2010-06-20 11:59:21 +0200
commited43f16ba56a014de57aad010c42fd3fdde7f870 (patch)
tree3011153a258d64a6b213d446d149350ca5f46caa /module/RequestFactory.py
parentNew feature: XDCC Support (diff)
downloadpyload-ed43f16ba56a014de57aad010c42fd3fdde7f870.tar.xz
New feature: FTP download support
use like this: ftp://user:passwd@ftp.server.net/path/to/file user:passwd@ is optional bugfix: linklist.py
Diffstat (limited to 'module/RequestFactory.py')
-rw-r--r--module/RequestFactory.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/RequestFactory.py b/module/RequestFactory.py
index 410d5ccd5..f66dfaf5d 100644
--- a/module/RequestFactory.py
+++ b/module/RequestFactory.py
@@ -20,6 +20,7 @@
from threading import Lock
from module.network.Request import Request
from module.network.XdccRequest import XdccRequest
+from module.network.FtpRequest import FtpRequest
import pycurl
class RequestFactory():
@@ -40,6 +41,9 @@ class RequestFactory():
elif type == "XDCC":
req = XdccRequest()
+ elif type == "FTP":
+ req = FtpRequest()
+
self.requests.append((pluginName, account, req))
self.lock.release()
return req