Content server: Fix browsing the News category in the OPDS feeds

This commit is contained in:
Kovid Goyal 2012-08-04 00:06:56 +05:30
parent 792532c0db
commit c5c9cac5a0

View File

@ -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,