diff --git a/catalog/search/typesense.py b/catalog/search/typesense.py index d6062d81..3187feb1 100644 --- a/catalog/search/typesense.py +++ b/catalog/search/typesense.py @@ -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 diff --git a/catalog/templates/movie.html b/catalog/templates/movie.html index 4cd79cab..51ff5d9a 100644 --- a/catalog/templates/movie.html +++ b/catalog/templates/movie.html @@ -139,9 +139,7 @@ {% endfor %} {% endif %}
{% if item.other_title %}{% trans '又名:' %} - {% for other_title in item.other_title %} - {{ other_title }}{% if not forloop.last %} / {% endif %} - {% endfor %} + {{ item.other_title }} {% endif %}
{% if item.site %}{% trans '网站:' %} {{ item.site|strip_scheme }} diff --git a/catalog/templates/tvseason.html b/catalog/templates/tvseason.html index e18b3816..3eb598b8 100644 --- a/catalog/templates/tvseason.html +++ b/catalog/templates/tvseason.html @@ -153,9 +153,7 @@ {% endfor %} {% endif %}
{% if item.other_title %}{% trans '又名:' %} - {% for other_title in item.other_title %} - {{ other_title }}{% if not forloop.last %} / {% endif %} - {% endfor %} + {{ item.other_title }} {% endif %}
{% if item.site %}{% trans '网站:' %} {{ item.site|strip_scheme }} diff --git a/catalog/templates/tvshow.html b/catalog/templates/tvshow.html index a1fbe321..8a142e97 100644 --- a/catalog/templates/tvshow.html +++ b/catalog/templates/tvshow.html @@ -151,9 +151,7 @@ {% endfor %} {% endif %}
{% if item.other_title %}{% trans '又名:' %} - {% for other_title in item.other_title %} - {{ other_title }}{% if not forloop.last %} / {% endif %} - {% endfor %} + {{ item.other_title }} {% endif %}
{% if item.site %}{% trans '网站:' %} {{ item.site|strip_scheme }}