diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-14 18:07:50 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-14 18:07:50 +0200 |
commit | ace0d590b4ec284bc7f5798a678effc25a96808c (patch) | |
tree | 8a02adf9317522cd232369af083cc14b19c5a3c0 /pyLoadCore.py | |
parent | link ordering for webif (diff) | |
download | pyload-ace0d590b4ec284bc7f5798a678effc25a96808c.tar.xz |
packages editable
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 60bfdc660..353737bce 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -751,6 +751,17 @@ class ServerMethods(): def order_file(self, id, pos): self.core.files.reorderFile(id, pos) + def set_package_data(self, id, data): + p = self.core.files.getPackage(id) + if not p: return + + for key, value in data.iteritems(): + if key == "id": continue + setattr(p, key, value) + + p.sync() + self.core.files.save() + def is_time_download(self): start = self.core.config['downloadTime']['start'].split(":") end = self.core.config['downloadTime']['end'].split(":") |