On second thoughts use the first file-as value instead of the last.

This commit is contained in:
Kovid Goyal 2018-04-19 07:18:33 +05:30
parent fb4504382b
commit fa00093b21
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -443,7 +443,7 @@ def read_authors(root, prefixes, refines):
aus = None
file_as = props.get('file-as')
if file_as:
aus = authors_to_string([x[-1] for x in file_as])
aus = file_as[0][-1]
else:
aus = item.get(OPF('file-as')) or None
return Author(normalize_whitespace(val), normalize_whitespace(aus))