mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Treat author_sort = _('Unknown') as null
This commit is contained in:
parent
380ea0d76c
commit
cef604bda2
@ -32,6 +32,7 @@ NULL_VALUES = {
|
||||
'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…
x
Reference in New Issue
Block a user