Make OPDS intial page respect the custom fields to display tweak

This commit is contained in:
Charles Haley 2012-10-06 08:50:27 +02:00
parent 20b3c0d4db
commit 31cee4f34b

View File

@ -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()