mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix /opds not respecting the 'advanced' displayed_fields option (Restrict displayed user-defined fields).
This commit is contained in:
parent
cd69272e7d
commit
d59dff1fb4
@ -492,6 +492,8 @@ def opds(ctx, rd):
|
||||
return x
|
||||
|
||||
for category in sorted(categories, key=lambda x: sort_key(getter(x))):
|
||||
if not rc.ctx.is_field_displayable(category):
|
||||
continue
|
||||
if len(categories[category]) == 0:
|
||||
continue
|
||||
if category in ('formats', 'identifiers'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user