Better frontend notification and GUI updating

This commit is contained in:
Ruud committed 2013-11-22 23:00:33 +01:00
1 parent 99e641a30d
commit eaf2974f8d
13 files changed
+1109 -50

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ class MediaPlugin(MediaBase):
for title in media.library.titles:
if title.default: default_title = title.title
fireEvent('notify.frontend', type = '%s.busy.%s' % (media.type, x), data = True)
fireEvent('notify.frontend', type = '%s.busy' % media.type, data = {'id': x})
fireEventAsync('library.update.%s' % media.type, identifier = media.library.identifier, default_title = default_title, force = True, on_complete = self.createOnComplete(x))
db.expire_all()