mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d3f9822a58
commit
62edaf9a23
@ -82,7 +82,7 @@ class Metadata(object):
|
||||
def print_all_attributes(self):
|
||||
pass
|
||||
|
||||
def smart_update(self, other):
|
||||
def smart_update(self, other, replace_metadata=False):
|
||||
pass
|
||||
|
||||
def format_series_index(self):
|
||||
|
@ -916,7 +916,7 @@ class OPF(object):
|
||||
raw = '<?xml version="1.0" encoding="%s"?>\n'%encoding.upper()+raw
|
||||
return raw
|
||||
|
||||
def smart_update(self, mi):
|
||||
def smart_update(self, mi, replace_metadata=False):
|
||||
for attr in ('title', 'authors', 'author_sort', 'title_sort',
|
||||
'publisher', 'series', 'series_index', 'rating',
|
||||
'isbn', 'language', 'tags', 'category', 'comments',
|
||||
|
Loading…
x
Reference in New Issue
Block a user