summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py7
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(":")