diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-02 00:45:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-02 00:45:18 +0200 |
commit | 33c7df15649ab3dbb963b58eb852d3e2876d31be (patch) | |
tree | 92ea835d25363afe7ac20a36f66834b509a0d13d /Core.py | |
parent | fixed no log folder bug, more logs instead of prints (diff) | |
download | pyload-33c7df15649ab3dbb963b58eb852d3e2876d31be.tar.xz |
new reconnect method, hard to test
Diffstat (limited to 'Core.py')
-rw-r--r-- | Core.py | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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() |