mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix one final case that could cause 'Unknown' to show up in the authors list even when authors are specified
This commit is contained in:
parent
7a3db36c9a
commit
ddc22b2480
@ -19,7 +19,7 @@ def meta_info_to_oeb_metadata(mi, m, log):
|
||||
m.add('title', mi.title_sort)
|
||||
m.title[0].file_as = mi.title_sort
|
||||
if mi.authors:
|
||||
m.filter('creator', lambda x : x.role.lower() == 'aut')
|
||||
m.filter('creator', lambda x : x.role.lower() in ['aut', ''])
|
||||
for a in mi.authors:
|
||||
attrib = {'role':'aut'}
|
||||
if mi.author_sort:
|
||||
|
Loading…
x
Reference in New Issue
Block a user