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:
Kovid Goyal 2009-07-27 11:59:32 -06:00
parent 7a3db36c9a
commit ddc22b2480

View File

@ -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: