mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
6b4182da7b
commit
699dbc0c55
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user