summaryrefslogtreecommitdiffstats
path: root/Core.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-05-23 15:03:43 +0200
committerGravatar spoob <spoob@gmx.de> 2009-05-23 15:03:43 +0200
commitc2b11f2425eac63a4140a71ede91db22ae749c7c (patch)
tree0a242f46cd8b91435e2ffb208b4b857ba21d3e8b /Core.py
parenttypo (diff)
downloadpyload-c2b11f2425eac63a4140a71ede91db22ae749c7c.tar.xz
youtube plugin added, nicer test output
Diffstat (limited to 'Core.py')
-rw-r--r--Core.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Core.py b/Core.py
index 1769282ff..b585fd581 100644
--- a/Core.py
+++ b/Core.py
@@ -30,7 +30,6 @@ from logging import warning, basicConfig
import urllib2
import re
from time import sleep, time
-import pickle
#my imports
from module.download_thread import Download_Thread
@@ -45,7 +44,6 @@ class Core(object):
def __init__(self):
self.download_folder = ""
self.link_file = "links.txt"
- self.plugin_index = "Plugins" + sep + "plugin_index.txt"
self.plugins_avaible = {}
#self.plugins_needed = {}
#self.plugins_dict = {}
@@ -93,7 +91,6 @@ class Core(object):
if plugin_pattern != "":
self.plugins_avaible[plugin_file] = plugin_pattern
print plugin_file, "hinzugefuegt"
- pickle.dump(self.plugins_avaible, open(self.plugin_index, "w"))
print "Index der Plugins erstellt"
## def check_needed_plugins(self):
@@ -219,8 +216,8 @@ class Core(object):
for pyfile in self.thread_list.py_downloading:
if pyfile.status.type == 'downloading':
- print pyfile.status.filename, "speed:" ,int(pyfile.status.get_speed()) ,"kb/s"
- print pyfile.status.filename, "ETA" , int(pyfile.status.get_ETA()), "s"
+ print pyfile.status.filename + ": speed is" ,int(pyfile.status.get_speed()) ,"kb/s"
+ print pyfile.status.filename + ": arraive in" ,pyfile.status.get_ETA() ,"seconds"
#try:
# fn = pyfile.status.filename
@@ -233,7 +230,7 @@ class Core(object):
# print pyfile.status.filename, "downloading"
if pyfile.status.type == 'waiting':
- print pyfile.status.filename + ": " + "wartet noch", int(pyfile.status.waituntil -time()) , "sekunden"
+ print pyfile.status.filename + ": wait", int(pyfile.status.waituntil -time()) , "seconds"
def start(self):
""" starts the machine
@@ -248,4 +245,3 @@ class Core(object):
testLoader = Core()
testLoader.start()
-#testLoader.create_plugin_index()