{# The stylesheet is embedded (reports/html._read_report_css): the report is one file. #} {% if poster_css %}{% endif %}
{#- Every row and file carries data-outcome / data-reason / data-flags / data-item-id, and the same facts sit in the #report-data JSON island, for scripted reviews. -#} {% set deleting = ["removed", "would_remove", "failed"] %} {% set pill_text = {"removed": "Removed", "would_remove": "Would remove", "failed": "Failed", "blocked": "Blocked", "would_block": "Would block", "other": "Unknown"} %} {% set out_titles = {"other": "Unknown status", "failed": "Failed", "removed": "Removed", "would_remove": "Would be removed", "blocked": "Blocked by the safety guard", "would_block": "Would be blocked by the safety guard"} %} {% set out_css = {"other": "seg-other", "failed": "seg-failed", "removed": "seg-removed", "would_remove": "seg-would", "blocked": "seg-blocked", "would_block": "seg-blocked"} %} {% macro ids(list) -%}{% for pid in list %}{{ pid }}{% if not loop.last %},{% endif %}{% endfor %}
{%- endmacro %}
{% macro path(side) -%}
{% if side.dir %}{{ side.dir }}/{% endif %}{{ side.base or side.path or "unknown" }}
{%- endmacro %}
{% macro cell(f, side, role, name, r) -%}
| Episode | {% endif %}Kept | Runtime | Size | Score | {{ "Removed" if name in deleting else "Other" }} | Runtime | Size | Score | Emby |
|---|---|---|---|---|---|---|---|---|---|
| {{ f.episode or f.title }}{% if r.per_file_status %}{{ f.status_text }}{% endif %}{% if r.per_file_reason and f.reason %}{{ f.reason }}{% endif %} | {% endif %} {{ cell(f, f.keep, "keep", name, r) }} {{ cell(f, f.delete, "other", name, r) }}kept{% if name != "removed" %} · other{% endif %} |
Why this copy: {{ note }}.
{% endfor %} {% if r.exclude_ids and name in ["would_remove", "blocked", "would_block"] %}{% if name == "would_remove" %}Don't want this removed? Add to --exclude-ids before --doit:{% else %}Keep both copies for good? Add to --exclude-ids:{% endif %} {{ ids(r.exclude_ids) }}{% if r.exclude_numeric %} (a bare number matches TMDB and TVDB alike; this title has no IMDb id){% endif %}
Emby Curator · dedupe report
{{ run.mode_short }} · {{ run.generated_human }}{% if run.libraries %} · librar{{ "y" if run.libraries|length == 1 else "ies" }} {{ run.libraries|join(", ") }}{% endif %}
{{ run.mode }}
{{ run_summary.subline }}
{% endif %} {% if run_summary.warning %}Warning: {{ run_summary.warning }}
{% endif %} {% if run_summary.has_files %} {% endif %}{{ a.command }}{% if run_summary.dry %}One signal says the wrong copy may go. Open the row and verify on disk before --doit.{% else %}Already removed. One signal says the wrong copy may have gone: open the row and verify the kept copy on disk.{% endif %}
{% for r in clusters.check %}{{ row(r, r.outcome) }}{% endfor %}Nothing failed.
{% endif %} {% if name in ["blocked", "would_block"] and rows %}Both copies stay. Protective, not an error: fix the files, or add the pair ids to --exclude-ids to stop seeing a pair.
{% endif %} {% for r in rows %}{{ row(r, name) }}{% endfor %}No ids excluded.
{% endif %} {% if excluded_titles %}