summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
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)