mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
c10a718174
@ -231,6 +231,9 @@ class Metadata:
|
||||
# are returning a "real" Metadata instance that has __get_attribute__.
|
||||
m = Metadata(None)
|
||||
object.__setattr__(m, '_data', copy.deepcopy(object.__getattribute__(self, '_data')))
|
||||
# Also copy these two top-level attributes as they can appear in templates.
|
||||
object.__setattr__(m, 'id', copy.copy(self.get('id')))
|
||||
object.__setattr__(m, 'has_cover', copy.copy(self.get('has_cover')))
|
||||
return m
|
||||
|
||||
def get(self, field, default=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user