From c5c9cac5a07ba002baee2783eaf2937d3c873a03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Aug 2012 00:06:56 +0530 Subject: [PATCH] Content server: Fix browsing the News category in the OPDS feeds --- src/calibre/library/server/opds.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/server/opds.py b/src/calibre/library/server/opds.py index 465439751c..b86d0e7a2d 100644 --- a/src/calibre/library/server/opds.py +++ b/src/calibre/library/server/opds.py @@ -561,7 +561,9 @@ class OPDSServer(object): if type_ != 'I': raise cherrypy.HTTPError(404, 'Non id categories not supported') - ids = self.db.get_books_for_category(category, which) + q = category + if q == 'news': q = 'tags' + ids = self.db.get_books_for_category(q, which) sort_by = 'series' if category == 'series' else 'title' return self.get_opds_acquisition_feed(ids, offset, page_url,