summaryrefslogtreecommitdiffstats
path: root/Core.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-02 00:45:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-02 00:45:18 +0200
commit33c7df15649ab3dbb963b58eb852d3e2876d31be (patch)
tree92ea835d25363afe7ac20a36f66834b509a0d13d /Core.py
parentfixed no log folder bug, more logs instead of prints (diff)
downloadpyload-33c7df15649ab3dbb963b58eb852d3e2876d31be.tar.xz
new reconnect method, hard to test
Diffstat (limited to 'Core.py')
-rw-r--r--Core.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/Core.py b/Core.py
index b37288491..bc5f2cde3 100644
--- a/Core.py
+++ b/Core.py
@@ -135,7 +135,7 @@ class Core(object):
def append_link(self, link):
if link not in self.thread_list.get_loaded_urls():
- self.__new_py_load_file(link)
+ self.__new_py_load_file(link.replace("\n",""))
def extend_links(self, links):
for link in links:
@@ -159,9 +159,9 @@ class Core(object):
mkdir(check_name)
else:
open(check_name, "w")
- self.logger.debug(_("%s created") % legend)
+ print _("%s created") % legend
except:
- self.logger.debug(_("could %s not create ") % legend)
+ print _("could %s not create ") % legend
exit()
#def addLinks(self, newLinks, atTheBeginning):
@@ -247,9 +247,10 @@ class Core(object):
if __name__ == "__main__":
testLoader = Core()
- if testLoader.config['remote_activated']:
- print _("Server Mode")
- server = ServerThread(testLoader)
- server.start()
+ #if testLoader.config['remote_activated']:
+ #@spoob: lass den server an
+ print _("Server Mode")
+ server = ServerThread(testLoader)
+ server.start()
testLoader.start()