{% load static tz core_tags %} {{title}}
Favicon {{title|truncatechars:120|safe}}
{{num_outputs}} {% if num_failures %} + {{num_failures}} errors {% endif %}
{% for tag in tags_str|split:',' %} {% if tag %}
{{tag}}
{% endif %} {% endfor %}
{% if related_years %}
{% for entry in related_years %} {% if entry.snapshots|length > 1 %}
{{ entry.year }}
{% else %} {% endif %} {% endfor %}
{% endif %}
{% if related_snapshots %}
{{oldest_archive_date|default:downloaded_datestr|default:bookmarked_date}}
{% else %} {{oldest_archive_date|default:downloaded_datestr|default:bookmarked_date}} {% endif %}
{% for result in archiveresults %} {% with display_path=result.path|default:result.result.embed_path display_url='' %} {% if display_path %}{% snapshot_url snapshot display_path as display_url %}{% endif %}
📁 {% if display_path %} ⬇️ {% endif %}
{% if display_path %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} ({{result.size|filesizeformat}}){% endif %}

{% else %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} ({{result.size|filesizeformat}}){% endif %}

{% endif %} {% if result.result %} {% with plugin_base=result.name|plugin_name %} {% if plugin_base == 'ytdlp' or plugin_base == 'yt-dlp' or plugin_base == 'youtube-dl' %} {% plugin_card result.result %} {% endif %} {% endwith %} {% endif %}
{% if result.result and display_path %} {% with plugin_base=result.name|plugin_name %} {% if plugin_base != 'ytdlp' and plugin_base != 'yt-dlp' and plugin_base != 'youtube-dl' %} {# Use plugin-specific card template when ArchiveResult is available #}
{% plugin_card result.result %}
{% else %} {# YT-DLP renders its file list in the body #} {% endif %} {% endwith %} {% elif result.is_metadata and display_path %}
{% plugin_icon result.name %} {{result.name|plugin_name}} metadata
{% elif display_path %} {# Fall back to generic iframe for filesystem-discovered files #} {% endif %}
{% endwith %} {% endfor %} {% if loose_items %}

📦 Other files

{% for item in loose_items %} {% if item.is_dir %} 📁 {{item.name}} {% else %} 📄 {{item.name}} {% endif %} {% endfor %}
{% endif %} {% if failed_items %}

⚠️ Failed

{% for item in failed_items %} {% if item.is_dir %} 📁 {{item.name}} {% else %} 📄 {{item.name}} {% endif %} {% endfor %}
{% endif %}
{% if best_result.result %} {# Use plugin-specific fullscreen template when ArchiveResult is available #}
{% plugin_full best_result.result %}
{% else %} {# Fall back to generic iframe #} {% endif %}