diff options
| author | 2009-11-29 16:29:53 +0100 | |
|---|---|---|
| committer | 2009-11-29 16:29:53 +0100 | |
| commit | 672932abf1cc860ebef67fb8385ffdf04aaf5215 (patch) | |
| tree | 75c4660c7f7f5f30c5db94b14a33f8b671efaaf9 /pyLoadCore.py | |
| parent | links.pkl now in module, nicer terminal kill (diff) | |
| download | pyload-672932abf1cc860ebef67fb8385ffdf04aaf5215.tar.xz | |
new xmlrpc method
Diffstat (limited to 'pyLoadCore.py')
| -rwxr-xr-x | pyLoadCore.py | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index cb6714f85..d1677a17b 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -354,6 +354,25 @@ class Core(object):                      "url": f.url                  })              data.append(ds) +        return data + +    def get_collector_packages(self): +        data = [] +        for q in self.file_list.data["packages"]: +            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) +        return data      #def move_urls_up(self, ids):      #    for id in ids:  | 
