mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tag browser: Fix clicking on categories to search for books by first letter of series not working correctly for non-English language books. Fixes #2116006 [Series filtering misbehaves with articles](https://bugs.launchpad.net/calibre/+bug/2116006)
This commit is contained in:
parent
489665c11f
commit
c3d35d2733
@ -768,7 +768,7 @@ class SeriesField(ManyToOneField):
|
||||
for book_id in book_ids:
|
||||
lang = lang_map.get(book_id)
|
||||
if lang:
|
||||
lang_counts[lang[0]] += 1
|
||||
lang_counts[lang] += 1
|
||||
lang = lang_counts.most_common(1)[0][0] if lang_counts else None
|
||||
yield ts(val, order=sso, lang=lang), book_ids
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user