diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-18 21:11:22 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-18 21:11:22 +0200 |
commit | cb8c5992af74e3c6562f2e5f0a828b5223779d85 (patch) | |
tree | 45c62f97ec546182a26921520d6ca5c38f6668bc /Py_Load_File.py | |
parent | py load file get now plugin_name (diff) | |
download | pyload-cb8c5992af74e3c6562f2e5f0a828b5223779d85.tar.xz |
Er downloaded jetzt eine Rapidshare Datei, wait muss aber noch implementiert werden. Alle status informationen und sonstiges sind ungetestet
Diffstat (limited to 'Py_Load_File.py')
-rw-r--r-- | Py_Load_File.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Py_Load_File.py b/Py_Load_File.py index 0abb6c8b9..6463379a1 100644 --- a/Py_Load_File.py +++ b/Py_Load_File.py @@ -3,13 +3,15 @@ from download_thread import Status class PyLoadFile: """ represents the url or file """ - def __init__(self, parent, url): + def __init__(self, parent, plugin, url): self.parent = parent self.id = None - self.plugin = None + pluginClass = getattr(plugin, plugin.__name__) + self.plugin = pluginClass(self) self.url = url + self.filename = "filename" self.download_folder = "" - self.status = Status() + self.status = Status(self.id) def _get_my_plugin(): plugins = parent.get_avail_plugins() |