{% extends "base.html" %} {% block title %}Search - neTV{% endblock %} {% block content %}

Search

{# Without it, Enter does nothing: the form has several text and number fields. #}
{# What to search. #}
{# What to keep; year and IMDb apply to movies and series only. #}
{# The categories results fall in, one name across channels, movies, and series; none to offer without results, unless one is chosen and so must be clearable. #} {% if categories or filters.category %} {% endif %}
{# How results are listed. #}
{% if query %} {% if results %}

{{ total }} result{{ '' if total == 1 else 's' }}{% if limit and total > limit %}, showing {{ limit }}{% endif %}

{# Channels, movies, and series together, in the chosen order. #}
{% with items = results, show_kind = true %}{% include "_cards.html" %}{% endwith %}
{% else %}

No results found for "{{ query }}"

{% endif %} {% if hidden_by_filters %} {% set cleared = request.query_params | dictsort | rejectattr(0, 'in', ['year_from', 'year_to', 'min_imdb', 'category']) | list %}

{{ hidden_by_filters }} more hidden by your filters — Clear filters

{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}