mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
dc6665c73e
commit
ec00073ed0
@ -467,6 +467,7 @@ def set_authors(root, prefixes, refines, authors):
|
|||||||
remove_element(item, refines)
|
remove_element(item, refines)
|
||||||
metadata = XPath('./opf:metadata')(root)[0]
|
metadata = XPath('./opf:metadata')(root)[0]
|
||||||
for author in authors:
|
for author in authors:
|
||||||
|
if author.name:
|
||||||
a = metadata.makeelement(DC('creator'))
|
a = metadata.makeelement(DC('creator'))
|
||||||
aid = ensure_id(a)
|
aid = ensure_id(a)
|
||||||
a.text = author.name
|
a.text = author.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user