This commit is contained in:
Kovid Goyal 2010-07-28 23:25:58 -06:00
parent d3f9822a58
commit 62edaf9a23
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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',