mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 15:25:19 +01:00
Treat author_sort = _('Unknown') as null
This commit is contained in:
parent
380ea0d76c
commit
cef604bda2
2 changed files with 1 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ def human_readable(size, precision=2):
|
|||
'device_collections': [],
|
||||
'author_sort_map': {},
|
||||
'authors' : [_('Unknown')],
|
||||
'author_sort' : _('Unknown'),
|
||||
'title' : _('Unknown'),
|
||||
'user_categories' : {},
|
||||
'author_link_map' : {},
|
||||
|
|
|
|||
|
|
@ -173,8 +173,6 @@ 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.author_sort == _('Unknown'):
|
||||
format_args['author_sort'] = _('Unknown')
|
||||
if mi.title:
|
||||
if tsorder == 'strictly_alphabetic':
|
||||
v = mi.title
|
||||
|
|
|
|||
Loading…
Reference in a new issue