Tag and untag dashboard media

This commit is contained in:
Ruud committed 2014-06-20 12:13:54 +02:00
1 parent 5797348bb3
commit 6f766aae8c
6 files changed
+65 -1

No files matched your search

+4
View File
@@ -104,6 +104,8 @@ class Release(Plugin):
elif rel['status'] in ['snatched', 'downloaded']:
self.updateStatus(rel['_id'], status = 'ignore')
fireEvent('media.untag', media.get('_id'), 'recent', single = True)
def add(self, group, update_info = True, update_id = None):
try:
@@ -346,6 +348,8 @@ class Release(Plugin):
mdia['last_edit'] = int(time.time())
db.update(mdia)
fireEvent('media.tag', media['_id'], 'recent', single = True)
return True
# Assume release downloaded