From 73de2ae89126eb060edceb1e30e4584f94c615c3 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 17 Aug 2010 21:47:50 +0100 Subject: [PATCH] Remove empty categories from the opds version --- src/calibre/library/server/opds.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/library/server/opds.py b/src/calibre/library/server/opds.py index f32e5ad47a..e1cbb79599 100644 --- a/src/calibre/library/server/opds.py +++ b/src/calibre/library/server/opds.py @@ -550,6 +550,8 @@ class OPDSServer(object): (_('Title'), _('Title'), 'Otitle'), ] for category in categories: + if len(categories[category]) == 0: + continue if category == 'formats': continue meta = category_meta.get(category, None)