mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a metadata_last_modified attribute to the Metadata object returned by get_metadata
This commit is contained in:
parent
29ba47485d
commit
25ae86e2cf
@ -574,8 +574,10 @@ class TagTreeItem(object): # {{{
|
|||||||
|
|
||||||
def break_cycles(self):
|
def break_cycles(self):
|
||||||
for x in self.children:
|
for x in self.children:
|
||||||
if hasattr(x, 'break_cycles'):
|
try:
|
||||||
x.break_cycles()
|
x.break_cycles()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.parent = self.icon_state_map = self.bold_font = self.tag = \
|
self.parent = self.icon_state_map = self.bold_font = self.tag = \
|
||||||
self.icon = self.children = None
|
self.icon = self.children = None
|
||||||
|
|
||||||
|
@ -833,6 +833,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
mi.pubdate = row[fm['pubdate']]
|
mi.pubdate = row[fm['pubdate']]
|
||||||
mi.uuid = row[fm['uuid']]
|
mi.uuid = row[fm['uuid']]
|
||||||
mi.title_sort = row[fm['sort']]
|
mi.title_sort = row[fm['sort']]
|
||||||
|
mi.metadata_last_modified = row[fm['last_modified']]
|
||||||
formats = row[fm['formats']]
|
formats = row[fm['formats']]
|
||||||
if not formats:
|
if not formats:
|
||||||
formats = None
|
formats = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user