summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-21 14:24:51 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-21 14:24:51 +0100
commit20f7c0e65607f2fb8607ed0e5e96181a36be76ca (patch)
treedabd600bde4231f9cd0bba62843057f6ae7f2630 /pyLoadCore.py
parentGUI: new docks (diff)
downloadpyload-20f7c0e65607f2fb8607ed0e5e96181a36be76ca.tar.xz
new update threads, link dock works now
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 4 insertions, 2 deletions
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):