From fa00093b21e35fd9009024a91eb821c944d8a56b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Apr 2018 07:18:33 +0530 Subject: [PATCH] On second thoughts use the first file-as value instead of the last. --- src/calibre/ebooks/metadata/opf3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/opf3.py b/src/calibre/ebooks/metadata/opf3.py index e6f38b1567..ab3c52fbb6 100644 --- a/src/calibre/ebooks/metadata/opf3.py +++ b/src/calibre/ebooks/metadata/opf3.py @@ -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))