From 31cee4f34b282124c808c0c5155ee1998e8d26e8 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 6 Oct 2012 08:50:27 +0200 Subject: [PATCH] Make OPDS intial page respect the custom fields to display tweak --- src/calibre/library/server/opds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/library/server/opds.py b/src/calibre/library/server/opds.py index b86d0e7a2d..f74a0e6a17 100644 --- a/src/calibre/library/server/opds.py +++ b/src/calibre/library/server/opds.py @@ -594,6 +594,9 @@ class OPDSServer(object): meta = category_meta.get(category, None) if meta is None: continue + if category_meta.is_custom_field(category) and \ + category not in custom_fields_to_display(self.db): + continue cats.append((meta['name'], meta['name'], 'N'+category)) updated = self.db.last_modified()