Skip to content

Commit

Permalink
MOBI metadata: When reading author sort from MOBI files, construct th…
Browse files Browse the repository at this point in the history
…e final value from all author fields
  • Loading branch information
kovidgoyal committed Apr 26, 2020
1 parent 0e46388 commit aad417b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/calibre/ebooks/mobi/reader/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def process_metadata(self, idx, content, codec):
self.mi.authors.append(m.group())
if self.mi.is_null('author_sort'):
self.mi.author_sort = m.group()
else:
self.mi.author_sort += ' & ' + m.group()
else:
self.mi.authors.append(au)
elif idx == 101:
Expand Down

0 comments on commit aad417b

Please sign in to comment.