diff options
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):
|