mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Template language: Treay null author sort values the same as null author values. Fixes #887141 (Save to disk with unknown author breaks python & action fails.)
This commit is contained in:
parent
1c83e0746e
commit
490d9c4b17
@ -173,6 +173,8 @@ def get_components(template, mi, id, timefmt='%b %Y', length=250,
|
||||
tsorder = tweaks['save_template_title_series_sorting']
|
||||
format_args = FORMAT_ARGS.copy()
|
||||
format_args.update(mi.all_non_none_fields())
|
||||
if mi.is_null('author_sort'):
|
||||
format_args['author_sort'] = _('Unknown')
|
||||
if mi.title:
|
||||
if tsorder == 'strictly_alphabetic':
|
||||
v = mi.title
|
||||
|
Loading…
x
Reference in New Issue
Block a user