mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ab9da85031
commit
ec6bee57e3
@ -690,8 +690,9 @@ class BrowseServer(object):
|
|||||||
if m['is_custom'] and field not in displayed_custom_fields:
|
if m['is_custom'] and field not in displayed_custom_fields:
|
||||||
continue
|
continue
|
||||||
if m['datatype'] == 'comments' or field == 'comments':
|
if m['datatype'] == 'comments' or field == 'comments':
|
||||||
comments.append((m['name'], comments_to_html(mi.get(field,
|
val = mi.get(field, '')
|
||||||
''))))
|
if val and val.strip():
|
||||||
|
comments.append((m['name'], comments_to_html(val)))
|
||||||
continue
|
continue
|
||||||
if field in ('title', 'formats') or not args.get(field, False) \
|
if field in ('title', 'formats') or not args.get(field, False) \
|
||||||
or not m['name']:
|
or not m['name']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user