{% set status_labels = { file_states.PENDING: 'Pending', file_states.IDENTIFIED: 'Imported', file_states.UNRESOLVED_LLM: 'Unresolved — identification', file_states.UNRESOLVED_HIDDEN_FILE: 'Unresolved — hidden file' } %}
{% if has_match_results %}{% endif %} {% for file in workspace.files %} {% if has_match_results %} {% endif %} {% else %} {% endfor %}
#UpdatedFilename / DirectoryTitleYearConfidenceRetriesStatusMatch ResultsAction
{{ loop.index }} {% if file.updated_at %}{% else %}—{% endif %} {{ file.filename }} {{ file.identification.title if file.identification is not none else '—' }} {{ file.display_year or '—' }} {{ file.identification.confidence if file.identification is not none else '—' }} {{ file.retries }} {% if file.pending %}Pending{% elif file.needs_year_inference and file.tmdb_match and not file.tmdb_match.file_moved %}Unresolved{% elif file.media_type == 'tv' and file.state == file_states.IDENTIFIED %}{% if file.tmdb_match and file.tmdb_match.file_moved %}Imported{% elif file.tmdb_match and file.tmdb_match.episodes_mapped %}Episodes mapped{% else %}Series identified{% endif %}{% else %}{{ status_labels[file.state] if file.state else 'Not available' }}{% endif %} {% if file.tmdb_match is none %}— {% elif file.tmdb_match.skipped %}Skipped {% else %}{{ file.tmdb_match.label }}{% endif %} {% if not automatic_processing and file.tmdb_match is not none and file.tmdb_match.needs_manual_match and file.action not in (file_actions.IGNORE, file_actions.DELETE) %}
{% if file.tmdb_match.selection_error %}

{{ file.tmdb_match.selection_error }}

{% endif %} {% elif not automatic_processing and file.tmdb_match is not none and file.tmdb_match.entry_exists and file.action not in (file_actions.IGNORE, file_actions.DELETE) %}
{% else %}—{% endif %}
No files in this batch.