mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server: Fix browsing the News category in the OPDS feeds
This commit is contained in:
parent
792532c0db
commit
c5c9cac5a0
@ -561,7 +561,9 @@ class OPDSServer(object):
|
|||||||
if type_ != 'I':
|
if type_ != 'I':
|
||||||
raise cherrypy.HTTPError(404, 'Non id categories not supported')
|
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'
|
sort_by = 'series' if category == 'series' else 'title'
|
||||||
|
|
||||||
return self.get_opds_acquisition_feed(ids, offset, page_url,
|
return self.get_opds_acquisition_feed(ids, offset, page_url,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user