diff --git a/couchpotato/core/plugins/library/main.py b/couchpotato/core/plugins/library/main.py index a68f9c53..309cf723 100644 --- a/couchpotato/core/plugins/library/main.py +++ b/couchpotato/core/plugins/library/main.py @@ -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