summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-23 00:33:49 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-23 00:33:49 +0200
commit967a43fd6680b5db0d3494e31d09549b58b30640 (patch)
tree165ab029311f24b0f3e6764d26c17a002d6c9260 /pyLoadCore.py
parentreconnect works with new plugin system (diff)
downloadpyload-967a43fd6680b5db0d3494e31d09549b58b30640.tar.xz
cli able to delete links in queue
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 3a46aea21..a9364d98a 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -250,6 +250,14 @@ class Core(object):
self.file_list.extend(links)
self.file_list.save()
+ def remove_links(self, ids):
+ for id in ids:
+ self.file_list.remove_id(id)
+ self.file_list.save()
+
+ def get_links(self):
+ return self.file_list.data
+
if __name__ == "__main__":
testLoader = Core()
testLoader.start()