mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove empty categories from the opds version
This commit is contained in:
parent
037a377a1c
commit
73de2ae891
@ -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