summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-17 21:28:10 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-17 21:28:10 +0100
commitc19a05c355760e1e0782ccb434eae4459baaf4cd (patch)
tree0e166b6917261101bb38fe35cb3bb072ee9923fb /module/Api.py
parentupdated lots of libraries (diff)
downloadpyload-c19a05c355760e1e0782ccb434eae4459baaf4cd.tar.xz
small api changes
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/Api.py b/module/Api.py
index d8e7c537e..8422a10a0 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -90,7 +90,7 @@ urlmatcher = re.compile(r"((https?|ftps?|xdcc|sftp):((//)|(\\\\))+[\w\d:#@%/;$()
stateMap = {
DownloadState.All: frozenset(getattr(DownloadStatus, x) for x in dir(DownloadStatus) if not x.startswith("_")),
DownloadState.Finished : frozenset((DownloadStatus.Finished, DownloadStatus.Skipped)),
- DownloadState.Unfinished : None,
+ DownloadState.Unfinished : None, # set below
DownloadState.Failed : frozenset((DownloadStatus.Failed, DownloadStatus.TempOffline, DownloadStatus.Aborted)),
DownloadState.Unmanaged: None, #TODO
}
@@ -172,6 +172,11 @@ class Api(Iface):
return self.core.version
@RequirePerm(Permission.All)
+ def getWSAddress(self):
+ """Gets and address for the websocket based on configuration"""
+ # TODO
+
+ @RequirePerm(Permission.All)
def statusServer(self):
"""Some general information about the current status of pyLoad.