mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content Server: Do not add empty categories to the top level OPDS feed
This commit is contained in:
parent
c02df37c78
commit
9c64ce8068
@ -550,6 +550,8 @@ class OPDSServer(object):
|
|||||||
(_('Title'), _('Title'), 'Otitle'),
|
(_('Title'), _('Title'), 'Otitle'),
|
||||||
]
|
]
|
||||||
for category in categories:
|
for category in categories:
|
||||||
|
if len(categories[category]) == 0:
|
||||||
|
continue
|
||||||
if category == 'formats':
|
if category == 'formats':
|
||||||
continue
|
continue
|
||||||
meta = category_meta.get(category, None)
|
meta = category_meta.get(category, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user