mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 08:36:10 +01:00
On second thoughts use the first file-as value instead of the last.
This commit is contained in:
parent
fb4504382b
commit
fa00093b21
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ def author(item, props, val):
|
|||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue