Update library handle

This commit is contained in:
Ruud
2011-10-01 20:57:23 +02:00
parent 4757651f7f
commit 106ff4fe11
+3 -2
View File
@@ -41,8 +41,9 @@ class LibraryPlugin(Plugin):
db.commit() db.commit()
# Update library info # Update library info
if update_after: if update_after is not False:
fireEventAsync('library.update', identifier = l.identifier, default_title = attrs.get('title', '')) handle = fireEventAsync if update_after is 'async' else fireEvent
handle('library.update', identifier = l.identifier, default_title = attrs.get('title', ''))
return l.to_dict(self.default_dict) return l.to_dict(self.default_dict)