Book polishing: Fix publisher field in epub not being cleared when updating metadata. Fixes #1319732 [calibre will not update Publisher](https://bugs.launchpad.net/calibre/+bug/1319732)

This commit is contained in:
Kovid Goyal 2014-05-15 15:37:02 +05:30
parent 6b4182da7b
commit 699dbc0c55

View File

@ -274,6 +274,8 @@ def update_metadata(opf, mi, apply_null=False, update_timestamp=False, force_ide
opf.isbn = None
if not getattr(mi, 'comments', None):
opf.comments = None
if not getattr(mi, 'publisher', None):
opf.publisher = None
if apply_null or force_identifiers:
opf.set_identifiers(mi.get_identifiers())
else: