From 7dd0c96037b0f91f761126d20e477e0e83e20825 Mon Sep 17 00:00:00 2001 From: Wugy Date: Mon, 21 Dec 2009 18:15:56 +0100 Subject: total progressbar bullshit --- pyLoadCore.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 9eb385553..2a9cbbc59 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -372,8 +372,7 @@ class ServerMethods(): if self.core.thread_list.pause: self.core.thread_list.pause = False else: - self.core.thread_list.pause = True - return self.core.thread_list.pause + self.core.thread_list.pause = True def status_server(self): status = {} @@ -395,10 +394,8 @@ class ServerMethods(): return CURRENT_VERSION def add_urls(self, links): - for link in links: - link = link.strip() - if link.startswith("http") or exists(link): - self.core.file_list.collector.addLink(link) + for link in links: + self.core.file_list.collector.addLink(link) self.core.file_list.save() def add_package(self, name, links): -- cgit v1.2.3