Content Server: Make OPDS initial page respect the fields to display tweak

This commit is contained in:
Kovid Goyal 2012-10-06 12:43:20 +05:30
commit d8cd99e8b9

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