Some general information about the current status of pyLoad. :return: `ServerStatus`
(self)
| 218 | |
| 219 | @permission(PERMS.LIST) |
| 220 | def statusServer(self): |
| 221 | """Some general information about the current status of pyLoad. |
| 222 | |
| 223 | :return: `ServerStatus` |
| 224 | """ |
| 225 | serverStatus = ServerStatus(self.core.threadManager.pause, len(self.core.threadManager.processingIds()), |
| 226 | self.core.files.getQueueCount(), self.core.files.getFileCount(), 0, |
| 227 | not self.core.threadManager.pause and self.isTimeDownload(), |
| 228 | self.core.config['reconnect']['activated'] and self.isTimeReconnect()) |
| 229 | |
| 230 | for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x.active, PyFile)]: |
| 231 | serverStatus.speed += pyfile.getSpeed() #bytes/s |
| 232 | |
| 233 | return serverStatus |
| 234 | |
| 235 | @permission(PERMS.STATUS) |
| 236 | def freeSpace(self): |
no test coverage detected