diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-30 22:00:04 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-30 22:00:04 +0100 |
commit | b3c1f830aaba0c22de22693e6b8cd81fe392f21a (patch) | |
tree | a48c2e278cb1a0b48182e665a0d5bb5652fb4ff3 /module/file_list.py | |
parent | WIP: package system second draft - unstable (diff) | |
download | pyload-b3c1f830aaba0c22de22693e6b8cd81fe392f21a.tar.xz |
fixed file_list
Diffstat (limited to 'module/file_list.py')
-rw-r--r-- | module/file_list.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/file_list.py b/module/file_list.py index 585c58ddf..f66567e0f 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -62,11 +62,11 @@ class File_List(object): collector = [] for n, pd in enumerate(obj["packages"]): p = PyLoadPackage() - pd.get(p) + pd.get(p, self) packages.append(p) for pd in obj["queue"]: p = PyLoadPackage() - pd.get(p) + pd.get(p, self) queue.append(p) for fd in obj["collector"]: f = PyLoadFile("", self) @@ -437,10 +437,10 @@ class PyLoadPackageData(): fdata.set(pyfile) self.files.append(fdata) - def get(self, pypack): + def get(self, pypack, fl): pypack.data = self.data for fdata in self.files: - pyfile = PyLoadFile() + pyfile = PyLoadFile(fdata.url, fl) fdata.get(pyfile) pyfile.package = pypack pypack.files.append(pyfile) |