mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: When using the prefer author sort conversion option, handle multiple authors better. Fixes #947146 (Error in MOBI metadata for multiple authors)
This commit is contained in:
parent
d4cf454f1b
commit
bc0d0637e3
@ -489,7 +489,8 @@ class MobiWriter(object):
|
||||
items = oeb.metadata[term]
|
||||
if term == 'creator':
|
||||
if self.prefer_author_sort:
|
||||
creators = [normalize(unicode(c.file_as or c)) for c in items]
|
||||
creators = [normalize(unicode(c.file_as or c)) for c in
|
||||
items][:1]
|
||||
else:
|
||||
creators = [normalize(unicode(c)) for c in items]
|
||||
items = ['; '.join(creators)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user