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': [],
|
'device_collections': [],
|
||||||
'author_sort_map': {},
|
'author_sort_map': {},
|
||||||
'authors' : [_('Unknown')],
|
'authors' : [_('Unknown')],
|
||||||
|
'author_sort' : _('Unknown'),
|
||||||
'title' : _('Unknown'),
|
'title' : _('Unknown'),
|
||||||
'user_categories' : {},
|
'user_categories' : {},
|
||||||
'author_link_map' : {},
|
'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']
|
tsorder = tweaks['save_template_title_series_sorting']
|
||||||
format_args = FORMAT_ARGS.copy()
|
format_args = FORMAT_ARGS.copy()
|
||||||
format_args.update(mi.all_non_none_fields())
|
format_args.update(mi.all_non_none_fields())
|
||||||
if mi.author_sort == _('Unknown'):
|
|
||||||
format_args['author_sort'] = _('Unknown')
|
|
||||||
if mi.title:
|
if mi.title:
|
||||||
if tsorder == 'strictly_alphabetic':
|
if tsorder == 'strictly_alphabetic':
|
||||||
v = mi.title
|
v = mi.title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user