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:
|
except KeyError:
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
fm = rc.db.field_metadata
|
||||||
for category in sorted(categories, key=lambda x: sort_key(getter(x))):
|
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
|
continue
|
||||||
if len(categories[category]) == 0:
|
if len(categories[category]) == 0:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user