summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 18:01:25 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 18:01:25 +0100
commit5a3e5a8228e4c5421b44d18c9c9ae2f1fe616400 (patch)
treebf70780213abfe9dcf938f8ca7d55274db7cd3fa /module/Api.py
parentHappy new Year ! (diff)
downloadpyload-5a3e5a8228e4c5421b44d18c9c9ae2f1fe616400.tar.xz
fixed imports
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/Api.py b/module/Api.py
index 810613b66..e6bd10762 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -318,7 +318,8 @@ class Api(Iface):
"""
hoster, crypter = self.core.pluginManager.parseUrls(links)
- self.core.files.addLinks(hoster, pid)
+ if hoster:
+ self.core.files.addLinks(hoster, pid)
self.core.threadManager.createInfoThread(hoster, pid)
self.core.threadManager.createDecryptThread(crypter, pid)
@@ -998,4 +999,4 @@ class Api(Iface):
def setUserPermission(self, user, permission, role):
self.core.db.setPermission(user, permission)
- self.core.db.setRole(user, role) \ No newline at end of file
+ self.core.db.setRole(user, role)