summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/download_thread.py2
-rwxr-xr-xmodule/network/Request.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 171969c64..896553a1c 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -64,7 +64,7 @@ class Status(object):
return self.pyfile.plugin.req.get_ETA()
def get_speed(self):
return self.pyfile.plugin.req.get_speed()
- def kB_left():
+ def kB_left(self):
return self.pyfile.plugins.req.kB_left()
diff --git a/module/network/Request.py b/module/network/Request.py
index 07b0129d2..7ddeec876 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -106,19 +106,19 @@ class Request:
self.dl = False
return True
- def getSpeed(self):
+ def get_speed(self):
try:
return (self.dl_arrived / (time.time() - self.dl_time)) / 1024
except:
return "No Download"
- def getETA(self):
+ def get_ETA(self):
try:
return (self.dl_size - self.dl_arrived) / (self.dl_arrived / (time.time() - self.dl_time))
except:
return "No Download"
- def kBleft(self):
+ def kB_left(self):
return (self.dl_size - self.dl_arrived) / 1024
if __name__ == "__main__" :