mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Server OPDS feeds: Fix incorrect count of authors reported when there are lowercased author names. Fixes #1703251 [Calibre OPDS server cannot show more than 30 authors at a time](https://bugs.launchpad.net/calibre/+bug/1703251)
This commit is contained in:
parent
3af4b40f41
commit
5dc7e8c16b
@ -453,7 +453,7 @@ def get_navcatalog(request_context, which, page_url, up_url, offset=0):
|
||||
category_groups = OrderedDict()
|
||||
for x in sorted(starts, key=sort_key):
|
||||
category_groups[x] = len([y for y in items if
|
||||
getattr(y, 'sort', y.name).startswith(x)])
|
||||
getattr(y, 'sort', y.name).upper().startswith(x)])
|
||||
items = [Group(x, y) for x, y in category_groups.items()]
|
||||
max_items = request_context.opts.max_opds_items
|
||||
offsets = Offsets(offset, max_items, len(items))
|
||||
|
Loading…
x
Reference in New Issue
Block a user