From 0fb39a439d671d5037261aafb2693f5e4950c1b8 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Jun 2011 21:40:24 +0200 Subject: [PATCH] Get library dict so it can be used in event --- couchpotato/core/plugins/library/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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