mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 04:32:59 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue