mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 01:53:16 +02:00
Add a metadata_last_modified attribute to the Metadata object returned by get_metadata
This commit is contained in:
parent
29ba47485d
commit
25ae86e2cf
2 changed files with 4 additions and 1 deletions
|
|
@ -574,8 +574,10 @@ def __init__(self, data=None, category_icon=None, icon_map=None,
|
|||
|
||||
def break_cycles(self):
|
||||
for x in self.children:
|
||||
if hasattr(x, 'break_cycles'):
|
||||
try:
|
||||
x.break_cycles()
|
||||
except:
|
||||
pass
|
||||
self.parent = self.icon_state_map = self.bold_font = self.tag = \
|
||||
self.icon = self.children = None
|
||||
|
||||
|
|
|
|||
|
|
@ -833,6 +833,7 @@ def get_metadata(self, idx, index_is_id=False, get_cover=False):
|
|||
mi.pubdate = row[fm['pubdate']]
|
||||
mi.uuid = row[fm['uuid']]
|
||||
mi.title_sort = row[fm['sort']]
|
||||
mi.metadata_last_modified = row[fm['last_modified']]
|
||||
formats = row[fm['formats']]
|
||||
if not formats:
|
||||
formats = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue