mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 10:05:05 +01:00
Split author field in xmp author metadata to keep consistency
This commit is contained in:
parent
f6517cc818
commit
a0432daaed
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
from lxml.builder import ElementMaker
|
||||
|
||||
from calibre import prints
|
||||
from calibre.ebooks.metadata import check_isbn, check_doi
|
||||
from calibre.ebooks.metadata import string_to_authors, check_isbn, check_doi
|
||||
from calibre.utils.xml_parse import safe_xml_fromstring
|
||||
from calibre.ebooks.metadata.book.base import Metadata
|
||||
from calibre.ebooks.metadata.opf2 import dump_dict
|
||||
|
|
@ -249,7 +249,7 @@ def metadata_from_xmp_packet(raw_bytes):
|
|||
mi.title = title
|
||||
authors = multiple_sequences('//dc:creator', root)
|
||||
if authors:
|
||||
mi.authors = authors
|
||||
mi.authors = [au for aus in authors for au in string_to_authors(aus)]
|
||||
tags = multiple_sequences('//dc:subject', root) or multiple_sequences('//pdf:Keywords', root)
|
||||
if tags:
|
||||
mi.tags = tags
|
||||
|
|
|
|||
Loading…
Reference in a new issue