update cover if shared via metadata

This commit is contained in:
j 2016-01-19 21:43:39 +05:30
parent f43fc6a172
commit a5fd6a3d09

View file

@ -357,6 +357,8 @@ class Item(db.Model):
user = state.user() user = state.user()
if record and user in self.users: if record and user in self.users:
Changelog.record_ts(user, self.modified, 'edititem', self.id, record) Changelog.record_ts(user, self.modified, 'edititem', self.id, record)
if 'cover' in record:
self.update_icons()
def extract_preview(self): def extract_preview(self):
path = self.get_path() path = self.get_path()