diff options
author | spoob <spoob@gmx.de> | 2009-05-20 13:34:27 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-20 13:34:27 +0200 |
commit | ce6820cff0109c87bcd0294d65242b12b2093311 (patch) | |
tree | ddb9f8bf42dc50913298d958a80bd206f70a11d3 /module | |
parent | Neue Request Klasse eingebunden + ein paar Status Funktionen (diff) | |
download | pyload-ce6820cff0109c87bcd0294d65242b12b2093311.tar.xz |
fixed some bugs
Diffstat (limited to 'module')
-rw-r--r-- | module/Py_Load_File.py | 4 | ||||
-rw-r--r-- | module/download_thread.py | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/module/Py_Load_File.py b/module/Py_Load_File.py index 4a15cd990..4eee82f91 100644 --- a/module/Py_Load_File.py +++ b/module/Py_Load_File.py @@ -6,10 +6,10 @@ class PyLoadFile: def __init__(self, parent, plugin, url): self.parent = parent self.id = None - pluginClass = getattr(plugin, plugin.__name__) + pluginClass = getattr(plugin, plugin.__name__) self.plugin = pluginClass(self) self.url = url - self.filename = "filename" + self.filename = "filename" self.download_folder = "" self.status = Status(self) diff --git a/module/download_thread.py b/module/download_thread.py index f6f43a295..171969c64 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -60,12 +60,12 @@ class Status(object): def set_status_queue(self, queue): self.status_queue = queue - def getETA(): - return self.pyfile.plugin.req.getETA() - def getSpeed(): - return self.pyfile.plugin.req.getSpeed() - def kBleft(): - return self.pyfile.plugins.req.kBleft() + def get_ETA(self): + return self.pyfile.plugin.req.get_ETA() + def get_speed(self): + return self.pyfile.plugin.req.get_speed() + def kB_left(): + return self.pyfile.plugins.req.kB_left() class Download_Thread(threading.Thread): |