Get library dict so it can be used in event
This commit is contained in:
1 parent
4213af85f3
commit
0fb39a439d
1 file changed
+4
-4
@@ -96,10 +96,10 @@ class LibraryPlugin(Plugin):
|
|||||||
library.files.append(file)
|
library.files.append(file)
|
||||||
db.commit()
|
db.commit()
|
||||||
except:
|
except:
|
||||||
pass
|
log.debug('Failed to attach to library: %s' % traceback.format_exc())
|
||||||
#log.debug('Failed to attach to library: %s' % traceback.format_exc())
|
|
||||||
|
library_dict = library.to_dict({'titles': {}, 'files':{}})
|
||||||
|
|
||||||
fireEvent('library.update.after')
|
|
||||||
fireEvent('notify.core', type = 'library.update', data = library_dict)
|
fireEvent('notify.core', type = 'library.update', data = library_dict)
|
||||||
|
|
||||||
return library.to_dict({'titles': {}, 'files':{}})
|
return library_dict
|
||||||
Reference in new issue
Block a user