summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-07 23:58:28 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-07 23:58:28 +0100
commit6eaa7bb25e2254c80c43fe46166142d590e86c64 (patch)
tree103b12d2f8ca59cf84c7511018d99c3cb651839f /module/Api.py
parentxfilesharingpro - fix patterns (diff)
downloadpyload-6eaa7bb25e2254c80c43fe46166142d590e86c64.tar.xz
some cleanups
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/module/Api.py b/module/Api.py
index d707b18fc..11b06ff32 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -25,11 +25,10 @@ from itertools import chain
from PyFile import PyFile
-from utils import freeSpace, compare_time
+from utils import freeSpace, compare_time, to_string
from common.packagetools import parseNames
from network.RequestFactory import getURL
from remote import activated
-from config.converter import to_string
if activated:
try:
@@ -134,7 +133,7 @@ class Api(Iface):
@permission(PERMS.SETTINGS)
def getConfig(self):
"""Retrieves complete config of core.
-
+
:return: list of `ConfigSection`
"""
return [ConfigSection(section, data.name, data.description, data.long_desc, [
@@ -198,7 +197,7 @@ class Api(Iface):
@permission(PERMS.LIST)
def statusServer(self):
"""Some general information about the current status of pyLoad.
-
+
:return: `ServerStatus`
"""
serverStatus = ServerStatus(self.core.threadManager.pause, len(self.core.threadManager.processingIds()),
@@ -318,7 +317,7 @@ class Api(Iface):
"""
hoster, crypter = self.core.pluginManager.parseUrls(links)
- if hoster:
+ if hoster:
self.core.files.addLinks(hoster, pid)
self.core.threadManager.createInfoThread(hoster, pid)
@@ -495,7 +494,7 @@ class Api(Iface):
@permission(PERMS.DELETE)
def deleteFiles(self, fids):
"""Deletes several file entries from pyload.
-
+
:param fids: list of file ids
"""
for id in fids: