mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Finish the fix for selecting custom fields in /opds
This commit is contained in:
parent
d59dff1fb4
commit
7f6bc63733
@ -491,8 +491,9 @@ def opds(ctx, rd):
|
||||
except KeyError:
|
||||
return x
|
||||
|
||||
fm = rc.db.field_metadata
|
||||
for category in sorted(categories, key=lambda x: sort_key(getter(x))):
|
||||
if not rc.ctx.is_field_displayable(category):
|
||||
if fm.is_ignorable_field(category) and not rc.ctx.is_field_displayable(category):
|
||||
continue
|
||||
if len(categories[category]) == 0:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user