From 20f7c0e65607f2fb8607ed0e5e96181a36be76ca Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 21 Dec 2009 14:24:51 +0100 Subject: new update threads, link dock works now --- pyLoadCore.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 2a9cbbc59..4df3f852e 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -394,8 +394,10 @@ class ServerMethods(): return CURRENT_VERSION def add_urls(self, links): - for link in links: - self.core.file_list.collector.addLink(link) + for link in links: + link = link.strip() + if link.startswith("http") or exists(link): + self.core.file_list.collector.addLink(link) self.core.file_list.save() def add_package(self, name, links): -- cgit v1.2.3