{% extends "_shell.html" %} {% from "_macros.html" import service_error, tile %} {% block title %}P102 Library{% endblock %} {% block content %}

LIBRARY

{#- Search sits at the top because arriving here with a title in mind is the common case. It posts to the same lookup the old page used. -#} {% if search_results is not none %}
Results {{ search_results | length }} match{{ 'es' if search_results | length != 1 else '' }}
{% if search_results %}
{% for it in search_results %} {{ tile(it.title, it.kind ~ (' ยท ' ~ it.year if it.year else ''), it.poster) }} {% endfor %}
{% else %}

No matches for “{{ q }}”.

{% endif %} {% endif %}
Holdings {%- if sonarr.status == 'ok' %}{{ sonarr.total_series }} shows{% endif -%} {%- if sonarr.status == 'ok' and radarr.status == 'ok' %} · {% endif -%} {%- if radarr.status == 'ok' %}{{ radarr.total_movies }} films{% endif -%}
{% if sonarr.status == 'ok' %}
{{ sonarr.total_series }}
Shows
{{ sonarr.missing_episodes }}
Missing eps
{% endif %} {% if radarr.status == 'ok' %}
{{ radarr.total_movies }}
Films
{{ radarr.missing_movies }}
Missing films
{% endif %}
{% if sonarr.status != 'ok' %}
Sonarroff air
{{ service_error('Sonarr', sonarr.error) }} {% endif %} {% if radarr.status != 'ok' %}
Radarroff air
{{ service_error('Radarr', radarr.error) }} {% endif %} {% if not q and recently_added %}
Newest In
{% for it in recently_added %} {{ tile(it.title, it.sub, it.poster, it.ago) }} {% endfor %}
{% endif %} {% endblock %}