mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix format metadata cache not being invalidated when updating path
This commit is contained in:
parent
73a312dd64
commit
e1f1353247
@ -1242,6 +1242,7 @@ class Cache(object):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
author = _('Unknown')
|
author = _('Unknown')
|
||||||
self.backend.update_path(book_id, title, author, self.fields['path'], self.fields['formats'])
|
self.backend.update_path(book_id, title, author, self.fields['path'], self.fields['formats'])
|
||||||
|
self.format_metadata_cache.pop(book_id, None)
|
||||||
if mark_as_dirtied:
|
if mark_as_dirtied:
|
||||||
self._mark_as_dirty(book_ids)
|
self._mark_as_dirty(book_ids)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user