diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-21 14:24:51 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-21 14:24:51 +0100 |
commit | 20f7c0e65607f2fb8607ed0e5e96181a36be76ca (patch) | |
tree | dabd600bde4231f9cd0bba62843057f6ae7f2630 /pyLoadCore.py | |
parent | GUI: new docks (diff) | |
download | pyload-20f7c0e65607f2fb8607ed0e5e96181a36be76ca.tar.xz |
new update threads, link dock works now
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 6 |
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):
|