{% include "_style.html" %} {% if check.running %} {% endif %} {% set back = "/" %} {% set back_label = "← Zpět do knihovny" %} {% include "_top.html" %} {# The work on the left, its parts on the right (one column when narrow). #}

{{ content.title }}

{{ type_labels.get(type, type) }} · {{ parts_label(episodes|length) }} {% if content.genre %} · {{ content.genre }}{% endif %} {% if source_url %} mujrozhlas.cz {% endif %} {% if content.available %} {{ new_parts_label(content.available) }} {% endif %} {% if content.upcoming %} {{ upcoming_parts_label(content.upcoming) }} {% endif %} {% if content.expired %} {{ expired_parts_label(content.expired) }} {% endif %}
{% if media_url(content.image_path) %} {{ content.title }} {% else %}
🎙️
{% endif %} {{ content.description or '' }}
{% if content.available %}
{% if content.checked_at %} Zkontrolováno {{ czech_datetime(content.checked_at) }} {% endif %}
{% endif %} {% if content.expired and content.checked_at %}

Naposledy zkontrolováno {{ czech_datetime(content.checked_at) }}

{% endif %} {% if report %}

{{ report }}

{% endif %} {% if edit_mode %}
🔗 Odkaz na mujrozhlas.cz
🗑 Smazat z knihovny
✏️ Upravit název, žánr a popis
{% for genre in genres %} {% endfor %}

Žánr se po uložení zapíše do tagů všech dílů.

{% endif %}
{% for ep in episodes %}
{% set source = media_url(ep.local_path) %}
{{ title_without_part(ep.title, ep.part) }} {% if ep.part or ep.broadcast_at or ep.duration %} {% if ep.part %}{{ ep.part }}. díl{% endif %} {% if ep.part and (ep.broadcast_at or ep.duration) %} · {% endif %} {{ ep.broadcast_at.strftime('%d. %m. %Y') if ep.broadcast_at else '' }} {% if ep.broadcast_at and ep.duration %} · {% endif %} {% if ep.duration %}{{ ep.duration // 60 }} min{% endif %} {% endif %} {% if source %} {% endif %}
{% if source %} {% else %}

Soubor teď není k dispozici (složka knihovny možná není připojená).

{% endif %} {% if edit_mode %}
✏️ Upravit údaje dílu
{% set tags = file_tags(ep.local_path) %}
🏷 Tagy v souboru

V souboru: {{ tags.get("title") or "—" }} · {{ tags.get("artist") or "—" }} · {{ tags.get("album") or "—" }} · {{ tags.get("genre") or "—" }} · skladba {{ tags.get("tracknumber") or "—" }}

Prázdné pole tag nezmění.

{% endif %}
{% endfor %}
{# /work-layout #}