diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-07 17:40:43 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-07 17:40:43 +0200 |
commit | afb5e3371a9b43dff97131440affcc2c68ec5593 (patch) | |
tree | 7d2c9f1b8a016fc115881d607fcdeb2c12b30703 /pyLoadCore.py | |
parent | hook improvements (diff) | |
download | pyload-afb5e3371a9b43dff97131440affcc2c68ec5593.tar.xz |
file info prefetching (RapidshareCom UploadedTo), download folder fix, SerienjunkiesOrg fix
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index a9ecf8095..d40173aed 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -493,6 +493,8 @@ class ServerMethods(): def get_file_data(self, id): info = self.core.files.getFileData(int(id)) + if not info: + return None info = {str(info.keys()[0]): info[info.keys()[0]]} return info @@ -617,7 +619,10 @@ class ServerMethods(): for p in plugins: data.extend(p.getAllAccounts()) return data - + + def set_priority(self, id, priority): + p = self.core.files.getPackage(id) + p.setPriority(priority) def is_time_download(self): start = self.core.config['downloadTime']['start'].split(":") |