JSON errors and image not loading

This commit is contained in:
Ruud
2012-02-16 00:01:43 +01:00
parent 0fe18b0109
commit af92355e2f
7 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class LibraryPlugin(Plugin):
continue
file_path = fireEvent('file.download', url = image, single = True)
file_obj = fireEvent('file.add', path = file_path, type = ('image', type), single = True)
file_obj = fireEvent('file.add', path = file_path, type_tuple = ('image', type), single = True)
try:
file_obj = db.query(File).filter_by(id = file_obj.get('id')).one()
library.files.append(file_obj)