mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 12:13:11 +02:00
Content server: Fix regression that caused various emtadata to be missing in the book details view. Fixes #8929 (Improve Content Server usability)
This commit is contained in:
parent
64fd29fa3e
commit
9eb94d425b
1 changed files with 1 additions and 3 deletions
|
|
@ -666,15 +666,13 @@ def browse_get_book_args(self, mi, id_, add_category_links=False):
|
|||
if add_category_links:
|
||||
added_key = False
|
||||
fm = mi.metadata_for_field(key)
|
||||
if val and fm and fm['is_category'] and \
|
||||
if val and fm and fm['is_category'] and not fm['is_csp'] and\
|
||||
key != 'formats' and fm['datatype'] not in ['rating']:
|
||||
categories = mi.get(key)
|
||||
if isinstance(categories, basestring):
|
||||
categories = [categories]
|
||||
dbtags = []
|
||||
for category in categories:
|
||||
if category not in ccache:
|
||||
continue
|
||||
dbtag = None
|
||||
for tag in ccache[key]:
|
||||
if tag.name == category:
|
||||
|
|
|
|||
Loading…
Reference in a new issue