summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-20 23:11:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-20 23:11:13 +0200
commit873caf6084edce42b705ddc516be24163619cb14 (patch)
tree77bdbbbd6379b015e14b7886ce17cc0178be7db6 /module/file_list.py
parentadded function to add new downloads to the core (diff)
downloadpyload-873caf6084edce42b705ddc516be24163619cb14.tar.xz
cli able to add links
Diffstat (limited to 'module/file_list.py')
-rw-r--r--module/file_list.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/file_list.py b/module/file_list.py
index d0ad13860..d2a634645 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -40,6 +40,9 @@ class File_List(object):
return pyfile
def append(self, url):
+ if not url:
+ return False
+
new_file = self.new_pyfile(url)
self.files.append(new_file)
self.data[new_file.id] = Data(url)