From afb5e3371a9b43dff97131440affcc2c68ec5593 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sat, 7 Aug 2010 17:40:43 +0200 Subject: file info prefetching (RapidshareCom UploadedTo), download folder fix, SerienjunkiesOrg fix --- pyLoadCore.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') 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(":") -- cgit v1.2.3