Browse Source

Get library dict so it can be used in event

pull/51/merge
Ruud 14 years ago
parent
commit
0fb39a439d
  1. 8
      couchpotato/core/plugins/library/main.py

8
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

Loading…
Cancel
Save