fix index imdb and barcode

This commit is contained in:
Your Name 2023-03-13 20:43:27 -04:00 committed by Henri Dickson
parent 80c6130f63
commit 10f0a58921
4 changed files with 6 additions and 11 deletions

View file

@ -23,7 +23,8 @@ SEARCHABLE_ATTRIBUTES = [
"company",
"publisher",
"isbn",
"imdb_code",
"imdb",
"barcode",
]
FILTERABLE_ATTRIBUTES = ["category", "tags", "class_name"]
INDEXABLE_DIRECT_TYPES = [
@ -190,7 +191,7 @@ class Indexer:
item.update(d)
item["id"] = obj.uuid
item["category"] = obj.category
item["category"] = obj.category.value
item["class_name"] = obj.class_name
item = {
k: v

View file

@ -139,9 +139,7 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{% for other_title in item.other_title %}
<span>{{ other_title }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{{ item.other_title }}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>

View file

@ -153,9 +153,7 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{% for other_title in item.other_title %}
<span>{{ other_title }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{{ item.other_title }}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>

View file

@ -151,9 +151,7 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{% for other_title in item.other_title %}
<span>{{ other_title }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{{ item.other_title }}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>