summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-03 21:31:26 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-03 21:31:26 +0100
commit8e3759edefbb7a36b0024a89eee45461c2f449e9 (patch)
treeb9be955fd5602e36403b58f92f8791ea07c58c38 /pyLoadCore.py
parentimproved read_url_list (diff)
downloadpyload-8e3759edefbb7a36b0024a89eee45461c2f449e9.tar.xz
base for new gui
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 075b2e2f9..e66e29c15 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -166,10 +166,12 @@ class Core(object):
txt.close()
- self.file_list.packager.pushPackage2Queue(pid)
- self.file_list.save()
if new_links:
self.logger.info("Parsed link from %s: %i" % (url_list, new_links))
+ self.file_list.packager.pushPackage2Queue(pid)
+ else:
+ self.file_list.packager.removePackage(pid)
+ self.file_list.save()
txt = open(url_list, 'w')
txt.write("")
@@ -397,19 +399,7 @@ class ServerMethods():
def get_queue(self):
data = []
for q in self.core.file_list.data["queue"]:
- ds = {
- "id": q.data.id,
- "name": q.data.package_name,
- "folder": q.data.folder,
- "files": []
- }
- for f in q.links:
- ds["files"].append({
- "name": f.status.name,
- "status": f.status.type,
- "url": f.url
- })
- data.append(ds)
+ data.append(q.data)
return data
def get_collector_packages(self):