Get library dict so it can be used in event
This commit is contained in:
@@ -96,10 +96,10 @@ class LibraryPlugin(Plugin):
|
||||
library.files.append(file)
|
||||
db.commit()
|
||||
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)
|
||||
|
||||
return library.to_dict({'titles': {}, 'files':{}})
|
||||
return library_dict
|
||||
|
||||
Reference in New Issue
Block a user