MOBI metadata: When reading author sort from MOBI files, construct the final value from all author fields

This commit is contained in:
Kovid Goyal 2020-04-26 09:59:24 +05:30
parent 0e46388e20
commit aad417b5d3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -127,6 +127,8 @@ class EXTHHeader(object): # {{{
self.mi.authors.append(m.group()) self.mi.authors.append(m.group())
if self.mi.is_null('author_sort'): if self.mi.is_null('author_sort'):
self.mi.author_sort = m.group() self.mi.author_sort = m.group()
else:
self.mi.author_sort += ' & ' + m.group()
else: else:
self.mi.authors.append(au) self.mi.authors.append(au)
elif idx == 101: elif idx == 101: